fix: public/private port distinction is no longer necessary

This commit is contained in:
Orion Kindel 2023-05-18 22:03:54 -05:00
parent 47a02b8356
commit 647c8e5762
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719
4 changed files with 3 additions and 7 deletions

View File

@ -7,10 +7,6 @@ subdomain_gitea="${SUBDOMAIN_GITEA:-git}"
uid_git="${UID_GIT:-1000}"
# NOTE: hard-coded in ./gitea-docker-compose.yml, ./nginx.conf
port_gitea_public="${PORT_GITEA:-8880}"
port_gitea_internal="${PORT_GITEA:-8881}"
# Creates a login session for `user` (positional argument 1) in their home directory,
# and executes a bash command string (positional argument 2) as `user`.
#

View File

@ -5,5 +5,4 @@ ufw default allow outgoing
ufw status verbose
ufw allow ssh
ufw allow 'Nginx Full'
ufw allow 8880/tcp
ufw --force enable

View File

@ -14,5 +14,5 @@ services:
- /home/git/data/:/var/lib/gitea/data
- /home/git/config/:/etc/gitea
ports:
- "8881:3000"
- "8880:3000" # see also: ./nginx.conf
- "127.0.0.1:2222:22"

View File

@ -4,7 +4,8 @@ server {
location / {
client_max_body_size 512M;
proxy_pass http://localhost:8881;
# see also: ./gitea-docker-compose.yml
proxy_pass http://localhost:8880;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;