update with tailscale and fix font loading error
parent
876b0051e6
commit
371aca319a
4
app.py
4
app.py
|
|
@ -31,10 +31,10 @@ Talisman(app,
|
||||||
frame_options='DENY',
|
frame_options='DENY',
|
||||||
content_security_policy={
|
content_security_policy={
|
||||||
'default-src': "'self'",
|
'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",
|
'style-src': "'self' 'unsafe-inline' https://cdn.jsdelivr.net https://cdnjs.cloudflare.com",
|
||||||
'img-src': "'self' data: https:",
|
'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'",
|
'connect-src': "'self'",
|
||||||
'frame-ancestors': "'none'",
|
'frame-ancestors': "'none'",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ services:
|
||||||
elemes:
|
elemes:
|
||||||
build: .
|
build: .
|
||||||
container_name: elemes
|
container_name: elemes
|
||||||
ports:
|
|
||||||
- "5000:5000"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ../content:/app/content
|
- ../content:/app/content
|
||||||
- ./static:/app/static
|
- ./static:/app/static
|
||||||
|
|
@ -24,13 +22,15 @@ services:
|
||||||
- TS_STATE_DIR=/var/lib/tailscale
|
- TS_STATE_DIR=/var/lib/tailscale
|
||||||
- TS_USERSPACE=true
|
- TS_USERSPACE=true
|
||||||
volumes:
|
volumes:
|
||||||
- ./state:/var/lib/tailscale
|
- ../state:/var/lib/tailscale
|
||||||
- ./config:/config
|
- ./config:/config
|
||||||
- /dev/net/tun:/dev/net/tun
|
- /dev/net/tun:/dev/net/tun
|
||||||
cap_add:
|
cap_add:
|
||||||
- net_admin
|
- net_admin
|
||||||
- sys_module
|
- sys_module
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- ../.env
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
main_network:
|
main_network:
|
||||||
|
|
|
||||||
4
start.sh
4
start.sh
|
|
@ -13,11 +13,11 @@ fi
|
||||||
# Check if container exists but is stopped
|
# Check if container exists but is stopped
|
||||||
if [ "$(podman ps -aq -f name=elemes-container)" ]; then
|
if [ "$(podman ps -aq -f name=elemes-container)" ]; then
|
||||||
echo "Starting existing container..."
|
echo "Starting existing container..."
|
||||||
podman start elemes-container
|
podman-compose --env-file ../.env up -d
|
||||||
else
|
else
|
||||||
# Build and run the container
|
# Build and run the container
|
||||||
echo "Building and starting container..."
|
echo "Building and starting container..."
|
||||||
podman-compose up --build -d
|
podman-compose --env-file ../.env up --build -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Application is now running. Access at http://localhost:5000"
|
echo "Application is now running. Access at http://localhost:5000"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue