container-director/director.conf
Jack Hadrill 70ecf3bf9b
All checks were successful
continuous-integration/drone/push Build is passing
Add container port number as an environment variable
2022-08-24 22:26:20 +00:00

16 lines
361 B
Plaintext

server {
listen ${LISTEN_PORT};
server_name _;
resolver 127.0.0.11 valid=1s;
location / {
proxy_pass http://${CONTAINER_PREFIX}$http_x_forwarded_preferred_username:${CONTAINER_PORT}$uri;
error_page 502 = @spawner;
}
location @spawner {
proxy_pass http://${SPAWNER_HOST}:${SPANWER_PORT}$uri;
}
}