From 055d8e8f0e419ab7673a8df20755da91f3ab9d97 Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 15 May 2022 22:03:01 +0200 Subject: [PATCH] first commit --- .../Swag/adding-theme-park.md | 57 +++++++++++++++++++ mkdocs.yml | 3 +- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 docs/portainer-stacks/Swag/adding-theme-park.md diff --git a/docs/portainer-stacks/Swag/adding-theme-park.md b/docs/portainer-stacks/Swag/adding-theme-park.md new file mode 100644 index 0000000..bd2715b --- /dev/null +++ b/docs/portainer-stacks/Swag/adding-theme-park.md @@ -0,0 +1,57 @@ +# [Theme-Park](https://docs.theme-park.dev/) + +Inside `/config/nginx` folder create file named `theme-park.conf` with: + +```javascript + proxy_set_header Accept-Encoding ""; + sub_filter + '' + ' + '; + sub_filter_once on; +``` + + +Now on the subdomain or subfolder file inside location add: + +```yaml + # Theme-Park + set $app guacamole; + set $theme organizr; + include /config/nginx/theme-park.conf; +``` + + +For example: + +``` +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name portal.*; + + include /config/nginx/ssl.conf; + client_max_body_size 0; + + location / { + proxy_pass http://guacamole:8080/guacamole/; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $http_connection; + access_log off; + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + + # Theme-Park + set $app guacamole; + set $theme organizr; + include /config/nginx/theme-park.conf; + + proxy_buffering off; + } +} +``` + +`set $app` is the app name found here [in Theme-Park website](https://theme-park.dev/#about) +`set $theme` is the theme name found can be [found here](https://docs.theme-park.dev/theme-options/) \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 2136615..0cf0fbb 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -106,8 +106,9 @@ nav: - VSCode: portainer-stacks/VSCode.md - Zigbee2MQTT: portainer-stacks/Zigbee2MQTT.md - Swag: - - Authelia: portainer-stacks/Swag/authelia.md - Swag: portainer-stacks/Swag/Swag.md + - Authelia: portainer-stacks/Swag/authelia.md + - Theme-Park: portainer-stacks/Swag/adding-theme-park.md - cmnds: - AddUser 1Line: cmnds/adduser-1line.md - Tasmota Backlogs: cmnds/tasmota-backlogs.md \ No newline at end of file