Update.
This commit is contained in:
parent
5ba239caa8
commit
7dcabde2ed
@ -13,6 +13,7 @@ RUN apk add --no-cache \
|
||||
libxext \
|
||||
libssl3 \
|
||||
ca-certificates \
|
||||
docker \
|
||||
fontconfig \
|
||||
freetype \
|
||||
ttf-dejavu \
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user