Files
landwelle/deploy/keyhelp-api-subdomain-https.conf
T

46 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Landwelle API-Subdomain – KeyHelp „Anweisungen für HTTPS“
# Stand: Landwelle v1.5.20
#
# Dieses Fragment vollständig in der Subdomain api.landwelle.de in das Feld
# „Anweisungen für HTTPS“ einfügen. Bei HTTPS-Erzwingung reicht das HTTP-Feld
# allein nicht aus.
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPreserveHost On
RewriteEngine On
# Neutrale API-Startseite.
RewriteRule ^/?$ http://127.0.0.1:2200/api/info [P,L]
# Öffentliche Radio-App-API. Beide Varianten abdecken, damit /v1 und /v1/
# zuverlässig funktionieren.
ProxyPass /v1/ http://127.0.0.1:2200/v1/ connectiontimeout=5 timeout=45 retry=0
ProxyPassReverse /v1/ http://127.0.0.1:2200/v1/
ProxyPass /v1 http://127.0.0.1:2200/v1 connectiontimeout=5 timeout=45 retry=0
ProxyPassReverse /v1 http://127.0.0.1:2200/v1
# Interne Landwelle-IT-App-API.
ProxyPass /api/mobile/ http://127.0.0.1:2200/api/mobile/ connectiontimeout=5 timeout=45 retry=0
ProxyPassReverse /api/mobile/ http://127.0.0.1:2200/api/mobile/
ProxyPass /api/mobile http://127.0.0.1:2200/api/mobile connectiontimeout=5 timeout=45 retry=0
ProxyPassReverse /api/mobile http://127.0.0.1:2200/api/mobile
# Externe Dienstchecks.
ProxyPass /health http://127.0.0.1:2200/health connectiontimeout=5 timeout=10 retry=0
ProxyPassReverse /health http://127.0.0.1:2200/health
ProxyPass /ready http://127.0.0.1:2200/ready connectiontimeout=5 timeout=10 retry=0
ProxyPassReverse /ready http://127.0.0.1:2200/ready
</IfModule>
<IfModule mod_headers.c>
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "no-referrer"
Header always set X-Frame-Options "DENY"
Header always set X-Robots-Tag "noindex, nofollow, noarchive"
</IfModule>