Skip to content

Instantly share code, notes, and snippets.

@cipi1965
Created December 9, 2018 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cipi1965/82017428417fd2d7faa2c134ba00b548 to your computer and use it in GitHub Desktop.
Save cipi1965/82017428417fd2d7faa2c134ba00b548 to your computer and use it in GitHub Desktop.
Gitea Nginx
server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl;
server_name gitea.*;
ssl_certificate /etc/acme/fullchain.pem;
ssl_certificate_key /etc/acme/key.pem;
access_log /var/log/nginx/gitea_access.log;
error_log /var/log/nginx/gitea_error.log;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:3131;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment