container-director/director.conf
Jack Hadrill f157161250
All checks were successful
continuous-integration/drone/push Build is passing
Update 'director.conf'
2022-08-27 20:32:45 +00:00

20 lines
565 B
Plaintext

server {
listen 8080;
server_name _;
resolver 127.0.0.11 valid=1s;
location / {
proxy_pass http://${CONTAINER_PREFIX}-$http_x_forwarded_preferred_username:${CONTAINER_PORT};
proxy_set_header Host ${CONTAINER_PREFIX}-$http_x_forwarded_preferred_username;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
error_page 502 = @spawner;
}
location @spawner {
proxy_pass http://${SPAWNER_HOST}:8080$uri;
}
}