Add change
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "change-game"]
|
||||
path = change-game
|
||||
url = git@labs.scarif.space:chris/change-game
|
||||
1
change-game
Submodule
1
change-game
Submodule
Submodule change-game added at 5fd400c22c
@@ -1,10 +0,0 @@
|
||||
FROM alpine/git:latest
|
||||
WORKDIR /change
|
||||
RUN git clone git@labs.scarif.space/chris/change-game.git
|
||||
|
||||
FROM node:alpine as base
|
||||
WORKDIR /change
|
||||
COPY package.json yarn.lock ./
|
||||
RUN rm -rf frontend/node_modules && yarn --cwd frontend install --frozen-lockfile && yarn --cwd frontend cache clean && yarn --cwd frontend build
|
||||
RUN rm -rf backend/node_modules && yarn --cwd backend install --frozen-lockfile && yarn --cwd backend cache clean
|
||||
COPY . .
|
||||
@@ -13,6 +13,12 @@ x-logging: &logging
|
||||
max-file: "2"
|
||||
|
||||
services:
|
||||
change:
|
||||
container_name: change
|
||||
image: node:alpine
|
||||
build: ./change-game
|
||||
environment:
|
||||
- PORT=9000
|
||||
foundry:
|
||||
<<: *logging
|
||||
image: felddy/foundryvtt:release
|
||||
@@ -74,7 +80,7 @@ services:
|
||||
extra_hosts:
|
||||
- "tower.${DOMAIN}:${LOCAL_IP}"
|
||||
- "office.${DOMAIN}:${LOCAL_IP}"
|
||||
|
||||
|
||||
collabora:
|
||||
<<: *logging
|
||||
image: collabora/code
|
||||
|
||||
@@ -361,6 +361,10 @@ http {
|
||||
server foundry:30000;
|
||||
}
|
||||
|
||||
upstream change-handler {
|
||||
server change:9000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
|
||||
@@ -384,6 +388,20 @@ http {
|
||||
|
||||
proxy_pass http://foundry-handler;
|
||||
}
|
||||
|
||||
location /change {
|
||||
|
||||
# Set proxy headers
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# These are important to support WebSockets;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
|
||||
proxy_pass http://change-handler;
|
||||
}
|
||||
}
|
||||
|
||||
upstream pihole-handler {
|
||||
|
||||
Reference in New Issue
Block a user