Skip to content

Commit 8406249

Browse files
committed
update
1 parent ca9dcae commit 8406249

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

Webgenie.md

+23-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ docker build -f docker/webgenie.Dockerfile -t apilogicserver/webgenie --rm .
55
```
66

77
# Run
8-
Without persistence (projects are deleted when container shuts down):
8+
9+
Without persistence (projects are deleted when container is deleted):
910

1011
```bash
11-
docker run -it --rm --name webgenie -p 8080:80 --env-file /opt/webgenai_env apilogicserver/webgenie
12+
docker run -it --rm --name webgenie -p 8080:80 --env-file webgenie.env apilogicserver/webgenie
1213
```
1314

1415
The web interface is accessible at http://localhost:8080
@@ -17,6 +18,25 @@ To keep the projects on the host, mount a writable folder in the container (`/op
1718
```bash
1819
mkdir projects
1920
chmod 777 projects
20-
docker run -it --rm --name webgenie -p 8080:80 --env-file /opt/webgenai_env $PWD/projects: apilogicserver/webgenie
21+
docker run -it --rm --name webgenie -p 8080:80 --env-file webgenie.env $PWD/projects: apilogicserver/webgenie
22+
```
23+
24+
Configuration parameters are set in the environment. (`--env-file` container argument)
25+
```
26+
# Nginx port
27+
APILOGICPROJECT_EXTERNAL_PORT=8080
28+
29+
# Gunicorn port (nginx will reverse proxy to this port)
30+
APILOGICPROJECT_PORT=5657
31+
32+
# OpenAI API key
33+
APILOGICSERVER_CHATGPT_APIKEY=sk-proj-
34+
35+
# Webgenie security configuration
36+
# set to false to disable authentication
37+
SECURITY_ENABLED=false
38+
# login password for the admin user
39+
ADMIN_PASSWORD=password
2140
```
2241

42+

webgenie.env

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Webgenie configuration parameters
2+
3+
# App configuration
4+
APILOGICPROJECT_EXTERNAL_PORT=8080
5+
APILOGICPROJECT_PORT=5657
6+
APILOGICSERVER_CHATGPT_APIKEY=sk-proj- # Specify your OpenAI API key
7+
8+
# Webgenie security configuration
9+
# set to false to disable authentication
10+
SECURITY_ENABLED=false
11+
# login password for the admin user
12+
ADMIN_PASSWORD=password
13+
14+
# OPT_LOCKING
15+
OPT_LOCKING=ignored

0 commit comments

Comments
 (0)