fix variable name
This commit is contained in:
parent
837805b714
commit
967572afac
|
@ -54,10 +54,10 @@ unifi_tls_cert_source: mycert.pem
|
|||
unifi_tls_key_source: mykey.pem
|
||||
|
||||
unifi_nginx_vhost_enabled: False
|
||||
unifi_server_name: unifi.example.com
|
||||
unifi_server_ip: 127.0.0.1
|
||||
unifi_server_port: 8443
|
||||
unifi_nginx_server: myinventoryname
|
||||
unifi_nginx_server_name: unifi.example.com
|
||||
unifi_nginx_vhost_dir: /etc/nginx/sites-available
|
||||
unifi_nginx_vhost_symlink: /etc/nginx/sites-enabled
|
||||
unifi_nginx_iptables_enabled: False
|
||||
|
|
|
@ -6,7 +6,7 @@ upstream backend {
|
|||
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ unifi_nginx_server_name }};
|
||||
server_name {{ unifi_server_name }};
|
||||
|
||||
{% if unifi_nginx_tls_enabled %}
|
||||
return 301 https://$server_name$request_uri;
|
||||
|
@ -27,7 +27,7 @@ server {
|
|||
{% if unifi_nginx_tls_enabled %}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name {{ unifi_nginx_server_name }};
|
||||
server_name {{ unifi_server_name }};
|
||||
|
||||
location / {
|
||||
proxy_pass https://backend;
|
||||
|
|
Loading…
Reference in New Issue