Created
October 25, 2018 08:30
-
-
Save gitsrc/b4fe622e94b9d674b6f9ac4e5912240a to your computer and use it in GitHub Desktop.
nginx with gogs
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
location / { | |
client_max_body_size 100m; | |
proxy_read_timeout 300; | |
proxy_connect_timeout 300; | |
proxy_redirect off; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://127.0.0.1:34443; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment