nump commited on
Commit
6bf66cb
1 Parent(s): d537dd5

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +8 -0
  2. config.json +31 -0
Dockerfile ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ FROM q11391/pandora-helper:latest
2
+ COPY config.json /app/data/config.json
3
+ RUN --mount=type=secret,id=ENV_ADMIN_PASSWORD,mode=0444,required=true \
4
+ echo "$(cat /run/secrets/ENV_ADMIN_PASSWORD)" && \
5
+ sed -i "s/ENV_ADMIN_PASSWORD/$(cat /run/secrets/ENV_ADMIN_PASSWORD)/g" /app/data/config.json && \
6
+ chmod 777 /app/data
7
+
8
+
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "security": {
3
+ "admin_password": "ENV_ADMIN_PASSWORD"
4
+ },
5
+ "http": {
6
+ "host": "0.0.0.0",
7
+ "port": 7860,
8
+ "title": "Pandora",
9
+ "rate": 100
10
+ },
11
+ "database": {
12
+ "driver": "sqlite",
13
+ "dsn": "./data/data.db"
14
+ },
15
+ "pandora": {
16
+ "domain": {
17
+ "chat": "https://chat.oaifree.com",
18
+ "token": "https://token.oaifree.com",
19
+ "index": "https://new.oaifree.com"
20
+ }
21
+ },
22
+ "log": {
23
+ "level": "info",
24
+ "output": "console",
25
+ "log_file_name": "./logs/server.log",
26
+ "max_backups": 30,
27
+ "max_age": 7,
28
+ "max_size": 1024,
29
+ "compress": true
30
+ }
31
+ }