Skip to content

Instantly share code, notes, and snippets.

@vico93
Created July 6, 2018 01:26
Show Gist options
  • Save vico93/f074dd4ab99ae9a8f2c108170f9d39ce to your computer and use it in GitHub Desktop.
Save vico93/f074dd4ab99ae9a8f2c108170f9d39ce to your computer and use it in GitHub Desktop.
server {
listen 80; # The default is 80 but this here if you want to change it.
server_name mydomain.xxx;
location /gitbucket {
proxy_pass http://localhost:8080/gitbucket;
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_connect_timeout 150;
proxy_send_timeout 100;
proxy_read_timeout 100;
proxy_buffers 4 32k;
client_max_body_size 500m; # Big number is we can post big commits.
client_body_buffer_size 128k;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment