22 lines
894 B
Plaintext
22 lines
894 B
Plaintext
# Apache >=2.4.47; Module: proxy proxy_http headers alias
|
|
# HTTPS danach mit certbot --apache; keine Parallelbelegung mit Nginx.
|
|
<VirtualHost *:80>
|
|
ServerName dashboard.example.com
|
|
ProxyRequests Off
|
|
ProxyPreserveHost On
|
|
ProxyTimeout 75
|
|
# Funktioniert auch nach Certbot-Kopie in einen SSL-vHost.
|
|
RequestHeader set X-Forwarded-Proto "expr=%{REQUEST_SCHEME}"
|
|
ProxyPass /static/ !
|
|
Alias /static/ /opt/dilib-dashboard/staticfiles/
|
|
<Directory /opt/dilib-dashboard/staticfiles/>
|
|
Require all granted
|
|
</Directory>
|
|
ProxyPass /api/ http://127.0.0.1:8000/api/
|
|
ProxyPassReverse /api/ http://127.0.0.1:8000/api/
|
|
ProxyPass /admin/ http://127.0.0.1:8000/admin/
|
|
ProxyPassReverse /admin/ http://127.0.0.1:8000/admin/
|
|
ProxyPass / http://127.0.0.1:8080/ upgrade=websocket timeout=3600
|
|
ProxyPassReverse / http://127.0.0.1:8080/
|
|
</VirtualHost>
|