Also made a small change to the python startup handling, ensuring that there is always a tunnel configuration file as soon as the service successfully starts for the first time.
22 lines
560 B
ApacheConf
22 lines
560 B
ApacheConf
<VirtualHost *:80>
|
|
ServerName wireguard.example.com
|
|
Redirect / https://wireguard.example.com/
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName wireguard.example.com
|
|
SSLEngine on
|
|
|
|
DocumentRoot /var/www/wg-selfserve/public
|
|
<Directory /var/www/wg-selfserve/public>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
RewriteEngine on
|
|
Rewritecond %{REQUEST_URI} !^/api
|
|
RewriteCond %{REQUEST_URI} !^/static
|
|
RewriteRule . index.html [L]
|
|
|
|
ProxyPass /api unix:/run/uwsgi/app/wg-selfserve/socket|uwsgi://wg-selfserve/
|
|
</VirtualHost>
|