Skip to content

Commit 3f979fa

Browse files
committed
fix config files for wysiwig-container
1 parent 829b82a commit 3f979fa

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

docs-wysiwig.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ If you'd like to run a local container of this server in order to see changes yo
1515
- Run `up.sh` to start your container as a persistent container
1616
### `.env` File
1717

18-
| Field | Example-value | Description |
19-
| ---------------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
20-
| WEBSERVER_PORT | 8081 | The port your local web-server should expose |
21-
| NEXT_PUBLIC_SERVER_URL | http://localhost:8081 | This is important for the keycloak-login process. The port should be the same as in WEBSERVER_PORT. |
22-
| LOCAL_DEV_MD_DIR | /home/larifari/secureLectures/md | This is the place of the md-directory within the repository you've cloned to your local machine. This is the place where your MD-files live. |
23-
| NEXT_AUTOSCAN | true | This switch tells the server to watch for changes in your MD-directory and reload all files, when it detects those. |
18+
| Field | Example-value | Description |
19+
| ----------------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20+
| WEBSERVER_PORT | 8081 | The port your local web-server should expose |
21+
| PUBLIC_SERVER_URL | http://localhost:8081 | This is important for the keycloak-login process. The port should be the same as in WEBSERVER_PORT. |
22+
| PUBLIC_START_URL | /md/index.md | This will open the file `<url>/md/index.md` as the `home`-URL of your site. This file has to exist, so be sure to enter this one correctly. |
23+
| LOCAL_DEV_MD_DIR | /home/larifari/secureLectures/md | This is the place of the md-directory within the repository you've cloned to your local machine. This is the place where your MD-files live. |
24+
| AUTOSCAN | true | This switch enables hot-updating. It tells the server to watch for changes in your MD-directory and reload all files, when it detects those changes.<br>This also enables hot-updating of your opened pages in your browser, if any. This works over SSEs. |
2425
### `keycloak.json` File
2526
This should be self-explanatory for keycloak-users. It's the config file for the keycloak-instance you are using.
2627

local-wysiwyg-container/.env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
WEBSERVER_PORT=8081
2-
NEXT_PUBLIC_SERVER_URL=http://localhost:8081
2+
PUBLIC_SERVER_URL=http://localhost:8081
3+
PUBLIC_START_PAGE=/md/index.md
34

45
LOCAL_DEV_MD_DIR=/path/to/your/local/md
5-
NEXT_AUTOSCAN=true
6+
AUTOSCAN=true
67

78
INTERNAL_PORT=8080
89
DOCKER_HUB_USER=gufalcon

local-wysiwyg-container/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ services:
77
ports:
88
- ${WEBSERVER_PORT}:${INTERNAL_PORT}
99
environment:
10-
- NEXT_PUBLIC_SERVER_URL=${NEXT_PUBLIC_SERVER_URL}
11-
- NEXT_AUTOSCAN=${NEXT_AUTOSCAN}
10+
- NEXT_PUBLIC_SERVER_URL=${PUBLIC_SERVER_URL}
11+
- NEXT_PUBLIC_START_PAGE=${PUBLIC_START_PAGE}
12+
- NEXT_AUTOSCAN=${AUTOSCAN}
1213
volumes:
1314
- ${LOCAL_DEV_MD_DIR}:/app/md
1415
- ./keycloak.json:/app/keycloak.json

0 commit comments

Comments
 (0)