36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Nginx vhost configuration for TeamCity
|
|
|
|
map $http_upgrade $connection_upgrade { # WebSocket support
|
|
default upgrade;
|
|
'' '';
|
|
}
|
|
|
|
server {
|
|
server_name teamcity.multimc.org;
|
|
listen 80;
|
|
client_max_body_size 100M;
|
|
|
|
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;
|
|
}
|
|
}
|
|
|