setting up nginx for gitea

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

resourcesresources

https://www.laurivan.com/reverse-proxy-gitea-http/

https://docs.gitea.com/next/administration/reverse-proxies

https://stackoverflow.com/questions/70812628/set-docker-container-listen-only-to-localhost-not-0-0-0-0

https://skarnet.org/software/s6/s6-svc.html

https://github.com/just-containers/s6-overlay


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT