fix: public/private port distinction is no longer necessary
This commit is contained in:
parent
47a02b8356
commit
647c8e5762
@ -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`.
|
||||
#
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user