1625e4ec8f
Migration includes: * A move away from being a SPA to have actual endpoints * Every page is generated via Jinja2Template * Added observability class to export metrics and logs to opentelemetry to integrate with observability stack * Let's database cache what the current status of all VMs are instead of using a dict to allow more multiple workers reading from a single source * The vm status API check to proxmox not caches authentication header for an hour instead of requesting a new header everytime it makes a request every thirty seconds. * Updated front end to be more WCAG compatible but it's still WIP
28 lines
674 B
Plaintext
28 lines
674 B
Plaintext
<VirtualHost *:80>
|
|
ServerName HOSTNAME.dsv.su.se
|
|
Redirect / https://HOSTNAME.dsv.su.se
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName HOSTNAME.dsv.su.se
|
|
SSLEngine On
|
|
|
|
ProxyPreserveHost On
|
|
RequestHeader set X-Forwareded-Proto "https"
|
|
|
|
RewriteEngine On
|
|
RewriteCond %{HTTP:Upgrade}% =websocket [NC]
|
|
RewriteRule /ws/(.*) ws://localhost:8000/ws/$1
|
|
|
|
ProxyPass /ws ws://localhost:8000/ws
|
|
ProxyPassReverse /ws ws://localhost:8000/ws
|
|
|
|
ProxyPass / http://127.0.0.1:8000/
|
|
ProxyPassReverse / http://127.0.0.1:8000/
|
|
|
|
<Location />
|
|
Require ip 193.10.9.22 130.237.161.0/24
|
|
</Location>
|
|
|
|
ProxyRequests Off
|
|
</VirtualHost> |