Created
December 9, 2018 21:32
-
-
Save cipi1965/82017428417fd2d7faa2c134ba00b548 to your computer and use it in GitHub Desktop.
Gitea Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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