Fix some mistakes I made preventing app from working and get OIDC working.

This commit is contained in:
2026-01-05 16:38:59 -05:00
parent 6fde39d6a4
commit 707aaeae15
6 changed files with 18 additions and 9 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
.git
.gitignore
.dockerignore
node_modules
screenshots
test

View File

@@ -3,20 +3,20 @@
"version": "0.1.0", "version": "0.1.0",
"author":"Kevin Whitaker <kevin@eyecreate.org>", "author":"Kevin Whitaker <kevin@eyecreate.org>",
"description":"A beautiful, powerful, self-hosted rom manager and player.", "description":"A beautiful, powerful, self-hosted rom manager and player.",
"healthCheckPath": "/", "healthCheckPath": "/api/heartbeat",
"httpPort": 3000, "httpPort": 3000,
"memoryLimit": 1048576000, "memoryLimit": 2097152000,
"addons": { "addons": {
"localstorage": {}, "localstorage": {},
"postgresql": {}, "postgresql": {},
"oidc": { "oidc": {
"loginRedirectUri": "/api/oauth/openid", "loginRedirectUri": "/api/oauth/openid",
"logoutRedirectUri": "/", "logoutRedirectUri": "/login",
"tokenSignatureAlgorithm": "RS256" "tokenSignatureAlgorithm": "RS256"
}, },
"redis": { "noPassword": true } "redis": { "noPassword": true }
}, },
"website":"https://romm.app/", "website":"https://romm.app/",
"icon":"file://icon.png", "icon":"file://logo.png",
"manifestVersion": 2 "manifestVersion": 2
} }

View File

@@ -63,7 +63,7 @@ RUN rm -rf /tmp/RALibretro
# Install frontend dependencies # Install frontend dependencies
WORKDIR /app/code/frontend WORKDIR /app/code/frontend
RUN npm install RUN npm install
RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp && ln -s /tmp/vite /app/code/frontend/node_modules/.vite RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp && ln -s /tmp/vite /app/code/frontend/node_modules/.vite && mkdir assets/romm && ln -s /app/data/assets /app/code/frontend/assets/romm/assets && ln -s /app/data/resources /app/code/frontend/assets/romm/resources
WORKDIR /app/code/ WORKDIR /app/code/
# Install uv for the non-root user # Install uv for the non-root user

View File

@@ -4,6 +4,8 @@ set -eu
mkdir -p /app/data/library /app/data/config /app/data/assets /app/data/resources mkdir -p /app/data/library /app/data/config /app/data/assets /app/data/resources
mkdir -p /tmp/vite-temp /tmp/vite /tmp/cache mkdir -p /tmp/vite-temp /tmp/vite /tmp/cache
touch /app/data/config/config.yml
# ensure that data directory is owned by 'cloudron' user # ensure that data directory is owned by 'cloudron' user
chown -R cloudron:cloudron /app/data /tmp/vite-temp /tmp/vite /tmp/cache chown -R cloudron:cloudron /app/data /tmp/vite-temp /tmp/vite /tmp/cache
@@ -24,9 +26,8 @@ export OIDC_ENABLED=true
export OIDC_PROVIDER=${CLOUDRON_OIDC_PROVIDER_NAME} export OIDC_PROVIDER=${CLOUDRON_OIDC_PROVIDER_NAME}
export OIDC_CLIENT_ID=${CLOUDRON_OIDC_CLIENT_ID} export OIDC_CLIENT_ID=${CLOUDRON_OIDC_CLIENT_ID}
export OIDC_CLIENT_SECRET=${CLOUDRON_OIDC_CLIENT_SECRET} export OIDC_CLIENT_SECRET=${CLOUDRON_OIDC_CLIENT_SECRET}
export OIDC_REDIRECT_URI="/api/oauth/openid" export OIDC_REDIRECT_URI="${CLOUDRON_APP_ORIGIN}/api/oauth/openid"
export OIDC_SERVER_APPLICATION_URL=${CLOUDRON_OIDC_AUTH_ENDPOINT} export OIDC_SERVER_APPLICATION_URL=${CLOUDRON_OIDC_ISSUER}
export ROMM_BASE_PATH=/app/data
export UV_PYTHON_INSTALL_DIR=/app/code/uv export UV_PYTHON_INSTALL_DIR=/app/code/uv
export DEV_HTTPS=false export DEV_HTTPS=false
export __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=${CLOUDRON_APP_DOMAIN} export __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=${CLOUDRON_APP_DOMAIN}

View File

@@ -2,6 +2,7 @@
priority=5 priority=5
directory=/app/code/backend directory=/app/code/backend
environment=HOME=/app/code environment=HOME=/app/code
environment=ROMM_BASE_PATH=/app/data
command=uv run python main.py command=uv run python main.py
user=cloudron user=cloudron
autostart=true autostart=true

View File

@@ -1,4 +1,4 @@
[program:backend] [program:frontend]
priority=5 priority=5
directory=/app/code/frontend directory=/app/code/frontend
environment=HOME=/app/code environment=HOME=/app/code