as root
netstat -lntup | grep docker cd /etc/nginx/conf.d/ vi gitea.conf
location / {
client_max_body_size 512M;
proxy_pass http://127.0.0.1:3000;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
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;
}
nginx -s reload
https://www.laurivan.com/reverse-proxy-gitea-http/
https://docs.gitea.com/next/administration/reverse-proxies
https://skarnet.org/software/s6/s6-svc.html
https://github.com/just-containers/s6-overlay