mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-03-18 18:14:02 +00:00
26 lines
728 B
Plaintext
26 lines
728 B
Plaintext
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;
|
|
}
|
|
}
|