mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-26 13:21:14 +00:00
Initial commit
This commit is contained in:
25
virtualhost.conf
Normal file
25
virtualhost.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen 80;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
ssl_certificate /certificate/nginx.pem;
|
||||
ssl_certificate_key /certificate/nginx.key;
|
||||
|
||||
# if you are using cloudflare, you can use this enable authenticated origin pull. Dont forget to activate it in cloudflare
|
||||
ssl_client_certificate /certificate/cloudflare_authenticated_origin_pull_ca.pem;
|
||||
ssl_verify_client on;
|
||||
|
||||
location /static/ {
|
||||
alias /static/;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://wireguard-webadmin:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user