Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e253e1811 | |||
| bc279562ba |
@@ -2,9 +2,12 @@ FROM mcr.microsoft.com/devcontainers/java:21-bookworm
|
|||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
curl \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
redis-tools \
|
redis-tools \
|
||||||
stockfish \
|
stockfish \
|
||||||
|
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||||
|
&& apt-get install -y --no-install-recommends nodejs \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN mkdir -p /home/vscode/.gradle/wrapper/dists \
|
RUN mkdir -p /home/vscode/.gradle/wrapper/dists \
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
"name": "NowChessSystems",
|
"name": "NowChessSystems",
|
||||||
"dockerComposeFile": ["docker-compose.yml"],
|
"dockerComposeFile": ["docker-compose.yml"],
|
||||||
"service": "workspace",
|
"service": "workspace",
|
||||||
"workspaceFolder": "/workspaces/NowChessSystems",
|
"workspaceFolder": "/workspace/NowChessSystems",
|
||||||
"shutdownAction": "stopCompose",
|
"shutdownAction": "stopCompose",
|
||||||
"overrideCommand": false,
|
"overrideCommand": false,
|
||||||
"remoteUser": "vscode",
|
"remoteUser": "vscode",
|
||||||
"forwardPorts": [8080, 8081, 8082, 8083, 8084, 8085, 8086, 9086],
|
"forwardPorts": [4200, 8080, 8081, 8082, 8083, 8084, 8085, 8086, 9086],
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
|
"4200": {"label": "NowChess Frontend", "onAutoForward": "notify"},
|
||||||
"8080": {"label": "NowChess Core", "onAutoForward": "notify"},
|
"8080": {"label": "NowChess Core", "onAutoForward": "notify"},
|
||||||
"8081": {"label": "NowChess Io", "onAutoForward": "notify"},
|
"8081": {"label": "NowChess Io", "onAutoForward": "notify"},
|
||||||
"8082": {"label": "NowChess Rule", "onAutoForward": "notify"},
|
"8082": {"label": "NowChess Rule", "onAutoForward": "notify"},
|
||||||
|
|||||||
Submodule
+1
Submodule frontend added at eadcd770ba
@@ -23,5 +23,5 @@ class InternalAuthFilter extends ContainerRequestFilter:
|
|||||||
override def filter(ctx: ContainerRequestContext): Unit =
|
override def filter(ctx: ContainerRequestContext): Unit =
|
||||||
if authEnabled then
|
if authEnabled then
|
||||||
val header = Option(ctx.getHeaderString("X-Internal-Secret"))
|
val header = Option(ctx.getHeaderString("X-Internal-Secret"))
|
||||||
if header.isEmpty || header.get.equals(secret) then
|
if header.isEmpty || header.get != secret then
|
||||||
ctx.abortWith(Response.status(Response.Status.UNAUTHORIZED).build())
|
ctx.abortWith(Response.status(Response.Status.UNAUTHORIZED).build())
|
||||||
|
|||||||
Reference in New Issue
Block a user