[fix] role:dokuwiki-and-nginx
This commit is contained in:
parent
361abc6a74
commit
f2b4ba5fed
1 changed files with 2 additions and 2 deletions
|
@ -48,14 +48,14 @@ server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
{% if (var_dokuwki_and_nginx_tls_mode == 'force') %}
|
{% if (var_dokuwiki_and_nginx_tls_mode == 'force') %}
|
||||||
return 301 https://$http_host$request_uri;
|
return 301 https://$http_host$request_uri;
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ dokuwki_common() }}
|
{{ dokuwki_common() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% if (var_element_and_nginx_tls_mode != 'disable') %}
|
{% if (var_dokuwiki_and_nginx_tls_mode != 'disable') %}
|
||||||
server {
|
server {
|
||||||
server_name {{var_dokuwiki_and_nginx_domain}};
|
server_name {{var_dokuwiki_and_nginx_domain}};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue