Add Jenkins proxy to test nginx config
This commit is contained in:
@@ -20,6 +20,23 @@ server {
|
||||
|
||||
root /var/www/public;
|
||||
|
||||
location /jenkins/ {
|
||||
proxy_pass http://jenkins:8080/;
|
||||
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_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_read_timeout 90s;
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php?$args; # Обработка запросов
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user