Use dedicated host port 2569 for hamkadr (avoids the 8090 conflict)
docker-compose.yml HOST_PORT default → 2569; nginx vhost proxy_pass → 127.0.0.1:2569; DEPLOY.md updated. Set HOST_PORT=2569 in the ENV_FILE secret. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
# sudo nginx -t && sudo systemctl reload nginx
|
||||
# sudo certbot --nginx -d hamkadr.ir -d www.hamkadr.ir # adds the :443 server + HTTP→HTTPS redirect
|
||||
#
|
||||
# The port below MUST match HOST_PORT in the Gitea ENV_FILE secret (default 8090).
|
||||
# The port below MUST match HOST_PORT in the Gitea ENV_FILE secret (default 2569).
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name hamkadr.ir www.hamkadr.ir;
|
||||
|
||||
# The app binds 127.0.0.1:8090 (docker-compose.yml, service "api") — never exposed publicly.
|
||||
# The app binds 127.0.0.1:2569 (docker-compose.yml, service "api") — never exposed publicly.
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8090;
|
||||
proxy_pass http://127.0.0.1:2569;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
Reference in New Issue
Block a user