adding reverse proxy config

This commit is contained in:
2025-06-30 11:29:56 -06:00
parent aba2d7575b
commit 689c37dc69

View File

@@ -214,6 +214,26 @@ server {
location / {
proxy_pass http://100.122.128.107:3001;
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;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name copilot.alexmickelson.guru;
location / {
proxy_pass http://copilot-api:4444;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;