Skip to content

Instantly share code, notes, and snippets.

@gitsrc
Created October 25, 2018 08:30
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 gitsrc/b4fe622e94b9d674b6f9ac4e5912240a to your computer and use it in GitHub Desktop.
Save gitsrc/b4fe622e94b9d674b6f9ac4e5912240a to your computer and use it in GitHub Desktop.
nginx with gogs
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