Add change

This commit is contained in:
2024-12-30 12:15:35 +00:00
parent 691a2af5ec
commit acd0605068
5 changed files with 29 additions and 11 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "change-game"]
path = change-game
url = git@labs.scarif.space:chris/change-game

1
change-game Submodule

Submodule change-game added at 5fd400c22c

View File

@@ -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 . .

View File

@@ -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

View File

@@ -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 {