wg-selfserve/examples/apache.conf
Erik Thuning 5a14f225b4 Added documentation for setting up the service.
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.
2025-03-11 16:31:59 +01:00

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>