Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Commit c808fe2

Browse files
committed
feat(gamja): init gamja setup
1 parent 76b8b2d commit c808fe2

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

web/gamja/Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM node:current-alpine3.22@sha256:51dbfc749ec3018c7d4bf8b9ee65299ff9a908e38918ce163b0acfcd5dd931d9 AS base
2+
3+
ENV GAMJA_VERSION="1.0.0-beta.11"
4+
5+
LABEL maintainer="AllThingsLinux IRC Infrastructure" \
6+
description="UnrealIRCd WebPanel - Web-based administration interface" \
7+
version="1.0.0" \
8+
org.opencontainers.image.source="https://github.com/allthingslinux/irc.atl.chat"
9+
10+
RUN addgroup -S gamja && \
11+
adduser -S -G gamja gamja
12+
13+
FROM base AS builder
14+
15+
RUN mkdir -p /var/www/html && \
16+
chgrp gamja /var/www/html && \
17+
chmod 775 /var/www/html
18+
19+
WORKDIR /var/www/html
20+
21+
USER gamja:gamja
22+
23+
RUN wget -q https://codeberg.org/emersion/gamja/archive/v${GAMJA_VERSION}.tar.gz && \
24+
tar xvf v${GAMJA_VERSION}.tar.gz
25+
26+
WORKDIR /var/www/html/gamja
27+
28+
RUN npm install --omit=dev
29+
30+
FROM base AS dev
31+
32+
COPY --from=builder --chown=gamja:gamja /var/www/html/gamja/ /var/www/html/gamja

web/gamja/conf/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"server": {
3+
"url": "wss://irc.example.org",
4+
"autojoin": "#gamja"
5+
},
6+
"oauth2": {
7+
"url": "https://auth.example.org",
8+
"client_id": "asdf"
9+
}
10+
}

web/gamja/default/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"server": {
3+
"url": "wss://irc.example.org",
4+
"autojoin": "#gamja"
5+
},
6+
"oauth2": {
7+
"url": "https://auth.example.org",
8+
"client_id": "asdf"
9+
}
10+
}

0 commit comments

Comments
 (0)