first commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sthope 2022-05-15 22:03:01 +02:00
parent cd8901ea76
commit 055d8e8f0e
2 changed files with 59 additions and 1 deletions

View File

@ -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
'</head>'
'<link rel="stylesheet" type="text/css" href="https://theme-park.dev/css/base/$app/$theme.css">
</head>';
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/)

View File

@ -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