generated from jackhadrill/container-spawner
Update usage (breaking)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
70ecf3bf9b
commit
1925b552c1
|
@ -1,10 +1,9 @@
|
|||
FROM nginx:alpine
|
||||
|
||||
ENV LISTEN_PORT="80"
|
||||
ENV CONTAINER_PREFIX="container"
|
||||
ENV CONTAINER_PREFIX="vscode"
|
||||
ENV CONTAINER_PORT="80"
|
||||
ENV SPAWNER_HOST="spawner"
|
||||
ENV SPANWER_PORT="80"
|
||||
ENV SPAWNER_URL="http://container-spawner"
|
||||
|
||||
RUN rm -rf /etc/nginx/conf.d/default.conf
|
||||
COPY director.conf /etc/nginx/templates/director.conf.template
|
||||
|
|
|
@ -15,9 +15,8 @@ services:
|
|||
restart: always
|
||||
environment:
|
||||
LISTEN_PORT: 80
|
||||
CONTAINER_PREFIX: "container"
|
||||
CONTAINER_PORT: 80
|
||||
SPAWNER_HOST: "spawner"
|
||||
SPANWER_PORT: 80
|
||||
CONTAINER_PREFIX: "container"
|
||||
SPAWNER_URL: "http://container-spawner"
|
||||
...
|
||||
```
|
||||
|
|
|
@ -5,11 +5,11 @@ server {
|
|||
resolver 127.0.0.11 valid=1s;
|
||||
|
||||
location / {
|
||||
proxy_pass http://${CONTAINER_PREFIX}$http_x_forwarded_preferred_username:${CONTAINER_PORT}$uri;
|
||||
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;
|
||||
proxy_pass ${SPAWNER_URL}$uri;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue