From 371aca319a4d88746a6ecb26c1bc14d76bee71e2 Mon Sep 17 00:00:00 2001 From: a2nr Date: Sun, 11 Jan 2026 20:22:30 +0700 Subject: [PATCH] update with tailscale and fix font loading error --- app.py | 4 ++-- podman-compose.yml | 6 +++--- start.sh | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index c96e468..c66497c 100644 --- a/app.py +++ b/app.py @@ -31,10 +31,10 @@ Talisman(app, frame_options='DENY', content_security_policy={ 'default-src': "'self'", - 'script-src': "'self' 'unsafe-inline' https://cdnjs.cloudflare.com", + 'script-src': "'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://cdn.jsdelivr.net", 'style-src': "'self' 'unsafe-inline' https://cdn.jsdelivr.net https://cdnjs.cloudflare.com", 'img-src': "'self' data: https:", - 'font-src': "'self' https://cdn.jsdelivr.net", + 'font-src': "'self' https://cdn.jsdelivr.net https://cdnjs.cloudflare.com", 'connect-src': "'self'", 'frame-ancestors': "'none'", }, diff --git a/podman-compose.yml b/podman-compose.yml index 6c3dfaf..3440daf 100644 --- a/podman-compose.yml +++ b/podman-compose.yml @@ -4,8 +4,6 @@ services: elemes: build: . container_name: elemes - ports: - - "5000:5000" volumes: - ../content:/app/content - ./static:/app/static @@ -24,13 +22,15 @@ services: - TS_STATE_DIR=/var/lib/tailscale - TS_USERSPACE=true volumes: - - ./state:/var/lib/tailscale + - ../state:/var/lib/tailscale - ./config:/config - /dev/net/tun:/dev/net/tun cap_add: - net_admin - sys_module restart: unless-stopped + env_file: + - ../.env networks: main_network: diff --git a/start.sh b/start.sh index dec6390..e21614d 100755 --- a/start.sh +++ b/start.sh @@ -13,11 +13,11 @@ fi # Check if container exists but is stopped if [ "$(podman ps -aq -f name=elemes-container)" ]; then echo "Starting existing container..." - podman start elemes-container + podman-compose --env-file ../.env up -d else # Build and run the container echo "Building and starting container..." - podman-compose up --build -d + podman-compose --env-file ../.env up --build -d fi echo "Application is now running. Access at http://localhost:5000"