Teamcity/nginx-tc.conf

37 lines
1.1 KiB
Text
Raw Normal View History

2019-02-13 15:45:41 -07:00
# Nginx vhost configuration for TeamCity
map $http_upgrade $connection_upgrade { # WebSocket support
default upgrade;
'' '';
}
server {
server_name teamcity.multimc.org;
listen 80;
2019-11-26 16:17:18 -07:00
client_max_body_size 100M;
2019-02-13 15:45:41 -07:00
location / {
proxy_pass http://localhost:8111;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-Forwarded-Host $http_host; # necessary for proper absolute redirects and TeamCity CSRF check
proxy_set_header Upgrade $http_upgrade; # WebSocket support
proxy_set_header Connection $connection_upgrade; # WebSocket support
proxy_max_temp_file_size 0;
proxy_connect_timeout 240;
proxy_send_timeout 300;
proxy_read_timeout 1200;
proxy_buffer_size 512k;
proxy_buffers 32 4m;
proxy_busy_buffers_size 25m;
proxy_temp_file_write_size 10m;
}
}
2019-11-26 16:17:18 -07:00