Refactor demo URLs and add nginx reverse-proxy configuration

This commit is contained in:
2025-06-07 21:16:50 +02:00
parent f8f88f42f4
commit f080037902
5 changed files with 58 additions and 7 deletions

34
nginx.conf Normal file
View File

@@ -0,0 +1,34 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
location / {
proxy_pass http://main-website:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /lawfirm-demos/demo1/ {
proxy_pass http://ld1:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Add more locations as needed for other demos
}
}