Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 2310f4c

Browse files
seperated server
1 parent 0cd74fc commit 2310f4c

14 files changed

+1089
-800
lines changed

Diff for: .gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
*.dfpwm
22
*.32vid
3-
server/data
43
doc
54
dictionary.dic
6-
__pycache__
75
*.pyc

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!make
22

33
run-server:
4-
python server/youcube.py
4+
python server/youcube
55

66
run-client:
77
craftos --id 2828 --exec "shell.run('clear') shell.run('youcube')" --mount-ro /=./client
@@ -13,7 +13,7 @@ illuaminate-lint:
1313
illuaminate lint
1414

1515
pylint:
16-
pylint server/*.py
16+
pylint server/youcube/*.py
1717

1818
pyspelling:
1919
pyspelling

Diff for: README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,14 @@ python server/youcube.py
103103

104104
Environment variables you can use to configure the server.
105105

106-
| Variable | Default | Description |
107-
|-------------------|---------|---------------------------------------------|
108-
| `PORT` | `5000` | The port where the web server should run on |
109-
| `TRUSTED_PROXIES` | | Trusted proxies (separated by comma`,`) |
106+
| Variable | Default | Description |
107+
|-------------------|------------|---------------------------------------------|
108+
| `PORT` | `5000` | The port where the web server should run on |
109+
| `TRUSTED_PROXIES` | | Trusted proxies (separated by comma`,`) |
110+
| `FFMPEG_PATH` | `ffmpeg` | Path to the FFmpeg executable |
111+
| `SANJUUNI_PATH` | `sanjuuni` | Path to the Sanjuuni executable |
112+
| `NO_COLOR` | `False` | Disable colored output |
113+
| `LOGLEVEL` | `DEBUG` | Python Log level of the main logger |
110114

111115
### Docker Compose
112116

Diff for: pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tool.autopep8]
2+
ignore = "E701"

Diff for: server/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ ENV \
5858

5959
USER 1000
6060

61-
COPY youcube.py .
61+
COPY youcube/* ./
6262

6363
ENTRYPOINT ["python3", "youcube.py"]

0 commit comments

Comments
 (0)