summaryrefslogtreecommitdiffstats
path: root/templates/nginx.j2
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2020-05-08 20:35:02 +0200
committerRomain Porte <microjoe@microjoe.org>2020-05-08 20:35:02 +0200
commited872e8676c691e4d68d3aa0f9c22706990ff59f (patch)
treefb9b4897afb66d52cb351a094c51c7112d1bc875 /templates/nginx.j2
parent00769d2eae2fd591b7b6c70104be89e049a7cbd1 (diff)
downloadMicroJoe.ttrss-ed872e8676c691e4d68d3aa0f9c22706990ff59f.tar.gz
MicroJoe.ttrss-ed872e8676c691e4d68d3aa0f9c22706990ff59f.zip
rename nginx_server_name -> nginx_domain
Diffstat (limited to 'templates/nginx.j2')
-rw-r--r--templates/nginx.j214
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/nginx.j2 b/templates/nginx.j2
index 015e475..b23a7c7 100644
--- a/templates/nginx.j2
+++ b/templates/nginx.j2
@@ -2,9 +2,9 @@ server {
listen 80;
listen [::]:80;
- server_name {{ nginx_server_name }};
- access_log /var/log/nginx/{{ nginx_server_name }}.access.log;
- error_log /var/log/nginx/{{ nginx_server_name }}.error.log;
+ server_name {{ nginx_domain }};
+ access_log /var/log/nginx/{{ nginx_domain }}.access.log;
+ error_log /var/log/nginx/{{ nginx_domain }}.error.log;
{% if letsencrypt_activate %}
location ^~ /.well-known/acme-challenge {
@@ -13,7 +13,7 @@ server {
{% if letsencrypt_https %}
location / {
- rewrite ^(.*)$ https://{{ nginx_server_name }}$1 permanent;
+ rewrite ^(.*)$ https://{{ nginx_domain }}$1 permanent;
}
}
@@ -21,9 +21,9 @@ server {
listen 443 ssl;
listen [::]:443 ssl;
- server_name {{ nginx_server_name }};
- access_log /var/log/nginx/{{ nginx_server_name }}.access.log;
- error_log /var/log/nginx/{{ nginx_server_name }}.error.log;
+ server_name {{ nginx_domain }};
+ access_log /var/log/nginx/{{ nginx_domain }}.access.log;
+ error_log /var/log/nginx/{{ nginx_domain }}.error.log;
ssl on;
ssl_certificate /etc/letsencrypt/live/{{ letsencrypt_domain }}/fullchain.pem;