Update.
This commit is contained in:
parent
5ba239caa8
commit
7dcabde2ed
@ -13,6 +13,7 @@ RUN apk add --no-cache \
|
|||||||
libxext \
|
libxext \
|
||||||
libssl3 \
|
libssl3 \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
docker \
|
||||||
fontconfig \
|
fontconfig \
|
||||||
freetype \
|
freetype \
|
||||||
ttf-dejavu \
|
ttf-dejavu \
|
||||||
|
@ -2,10 +2,14 @@ services:
|
|||||||
snek:
|
snek:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: always
|
||||||
|
privileged: true
|
||||||
ports:
|
ports:
|
||||||
- "8081:8081"
|
- "8081:8081"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/code
|
- ./:/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:
|
environment:
|
||||||
- PYTHONDONTWRITEBYTECODE=1
|
- PYTHONDONTWRITEBYTECODE=1
|
||||||
- PYTHONUNBUFFERED=1
|
- PYTHONUNBUFFERED=1
|
||||||
|
@ -37,7 +37,7 @@ from snek.view.upload import UploadView
|
|||||||
from snek.view.search_user import SearchUserView
|
from snek.view.search_user import SearchUserView
|
||||||
from snek.view.avatar import AvatarView
|
from snek.view.avatar import AvatarView
|
||||||
from snek.system.profiler import profiler_handler
|
from snek.system.profiler import profiler_handler
|
||||||
|
from snek.view.terminal import TerminalView, TerminalSocketView
|
||||||
|
|
||||||
SESSION_KEY = b"c79a0c5fda4b424189c427d28c9f7c34"
|
SESSION_KEY = b"c79a0c5fda4b424189c427d28c9f7c34"
|
||||||
|
|
||||||
@ -115,6 +115,8 @@ class Application(BaseApplication):
|
|||||||
self.router.add_get("/rpc.ws", RPCView)
|
self.router.add_get("/rpc.ws", RPCView)
|
||||||
self.router.add_view("/channel/{channel}.html", WebView)
|
self.router.add_view("/channel/{channel}.html", WebView)
|
||||||
self.router.add_view("/threads.html", ThreadsView)
|
self.router.add_view("/threads.html", ThreadsView)
|
||||||
|
self.router.add_view("/terminal.ws", TerminalSocketView)
|
||||||
|
self.router.add_view("/terminal.html", TerminalView)
|
||||||
|
|
||||||
self.add_subapp(
|
self.add_subapp(
|
||||||
"/docs",
|
"/docs",
|
||||||
|
Loading…
Reference in New Issue
Block a user