mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-03-31 14:24:16 +02:00
Activated iframe loading for proxy
This commit is contained in:
parent
8be422cc99
commit
dea7052da0
@ -15,6 +15,7 @@ nginx:
|
|||||||
files: "/var/www/public_files/" # Path where the web accessable files are stored
|
files: "/var/www/public_files/" # Path where the web accessable files are stored
|
||||||
global: "/var/www/global/" # Directory containing files which will be globaly accessable
|
global: "/var/www/global/" # Directory containing files which will be globaly accessable
|
||||||
user: "http" # Default nginx user in ArchLinux
|
user: "http" # Default nginx user in ArchLinux
|
||||||
|
iframe: true # Allows applications to be loaded in iframe
|
||||||
|
|
||||||
## Matomo Tracking
|
## Matomo Tracking
|
||||||
global_matomo_tracking_enabled: false # Activates matomo tracking on all html pages. Change this in inventory.
|
global_matomo_tracking_enabled: false # Activates matomo tracking on all html pages. Change this in inventory.
|
@ -14,6 +14,13 @@ location {{location | default("/")}}
|
|||||||
proxy_set_header X-Forwarded-Port 443;
|
proxy_set_header X-Forwarded-Port 443;
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
|
|
||||||
|
|
||||||
|
{% if nginx.iframe | bool %}
|
||||||
|
# activate embedding via iframe
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
|
add_header Content-Security-Policy "frame-ancestors 'self' *.{{primary_domain}};" always;
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# WebSocket specific header
|
# WebSocket specific header
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user