You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5. Configure Traefik, set your domains in `./config/traefik/dynamic/traefik-dashboard.yml` and `./config/traefik/dynamic/wsc.yml` or remove `Host(*) &&`. Also in `traefik-dashboard.yml`change basicAuth user and password. Additionally, create SSL certificates contains domain name(s) and set the path within the container in `./config/traefik/dynamic/ssl.yml` or use [Let's Encrypt](https://doc.traefik.io/traefik/reference/install-configuration/tls/certificate-resolvers/acme/).
35
-
*example command for replace domain in dynamic configs:
32
+
*`mkdir ./html && chown 65532:65532 ./html`
33
+
*`mkdir ./data-db && chown 65532:65532 ./data-db`
34
+
5. Configure **Traefik**, set your domains in `./config/traefik/dynamic/traefik-dashboard.yml` and `./config/traefik/dynamic/wsc.yml` or remove `Host(*) &&`. Also in `traefik-dashboard.yml`change basicAuth user and password. Additionally, create SSL certificates contains domain name(s) and set the path within the container in `./config/traefik/dynamic/ssl.yml` or use [Let's Encrypt](https://doc.traefik.io/traefik/reference/install-configuration/tls/certificate-resolvers/acme/).
35
+
*(1) set domain as variable from `.env`:
36
36
```sh
37
-
find ./config/traefik/dynamic -type f -exec sed -i 's/example.com/mydomain.com/g' {} +
37
+
DOMAIN=$(grep '^DOMAIN=' .env | cut -d= -f2-)
38
38
```
39
-
* example for self sign cert:
39
+
* (2) replace domain in dynamic configs:
40
+
```sh
41
+
find ./config/traefik/dynamic -type f -exec sed -i "s/example.com/${DOMAIN}/g" {} +
docker exec -it wsc-mysql bash -c 'mysql -uroot -e "CREATE USER \"${MYSQL_USER}\"@\"%\" IDENTIFIED BY \"${MYSQL_PASSWORD}\"; GRANT ALL PRIVILEGES ON ${MYSQL_DATABASE}.* TO \"${MYSQL_USER}\"@\"%\";"'
78
+
docker exec -it wsc-db bash -c 'mysql -uroot -e "CREATE USER \"${MYSQL_USER}\"@\"%\" IDENTIFIED BY \"${MYSQL_PASSWORD}\"; GRANT ALL PRIVILEGES ON ${MYSQL_DATABASE}.* TO \"${MYSQL_USER}\"@\"%\";"'
60
79
```
61
80
8. [Download WSC](https://www.woltlab.com/en/woltlab-suite-download/) and unzip archive and copy all files from "upload" folder in"html" folder on your server.
62
81
9. Call your domain and file test.php, example: `http://example.com/test.php`
0 commit comments