Add unifi role
And server.
This commit is contained in:
parent
73555d2fd7
commit
e95603fda9
4 changed files with 72 additions and 0 deletions
21
roles/unifi/templates/nginx.conf.j2
Normal file
21
roles/unifi/templates/nginx.conf.j2
Normal file
|
@ -0,0 +1,21 @@
|
|||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name {{ dns_name }};
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/{{ dns_name }}/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/{{ dns_name }}/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass https://localhost:8443;
|
||||
proxy_buffering off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
|
||||
|
||||
# for websockets
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue