This commit is contained in:
retoor 2025-03-22 18:16:36 +01:00
parent 5ba239caa8
commit 7dcabde2ed
3 changed files with 8 additions and 1 deletions

View File

@ -13,6 +13,7 @@ RUN apk add --no-cache \
libxext \
libssl3 \
ca-certificates \
docker \
fontconfig \
freetype \
ttf-dejavu \

View File

@ -2,10 +2,14 @@ services:
snek:
build: .
restart: always
privileged: true
ports:
- "8081:8081"
volumes:
- ./:/code
- /media/storage/snek/molodetz.nl/drive:/code/drive
- /var/run/docker.sock:/var/run/docker.sock
- /media/storage/snek/molodetz.nl/drive:/drive
environment:
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1

View File

@ -37,7 +37,7 @@ from snek.view.upload import UploadView
from snek.view.search_user import SearchUserView
from snek.view.avatar import AvatarView
from snek.system.profiler import profiler_handler
from snek.view.terminal import TerminalView, TerminalSocketView
SESSION_KEY = b"c79a0c5fda4b424189c427d28c9f7c34"
@ -115,6 +115,8 @@ class Application(BaseApplication):
self.router.add_get("/rpc.ws", RPCView)
self.router.add_view("/channel/{channel}.html", WebView)
self.router.add_view("/threads.html", ThreadsView)
self.router.add_view("/terminal.ws", TerminalSocketView)
self.router.add_view("/terminal.html", TerminalView)
self.add_subapp(
"/docs",