add logging format
This commit is contained in:
@@ -32,6 +32,8 @@ server {
|
|||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
access_log /var/log/nginx/access.log my_custom_format;
|
||||||
|
|
||||||
${extra-value}
|
${extra-value}
|
||||||
%{~ if http2_bool~}
|
%{~ if http2_bool~}
|
||||||
http2 on;
|
http2 on;
|
||||||
@@ -39,10 +41,16 @@ server {
|
|||||||
%{~ endif ~}
|
%{~ endif ~}
|
||||||
|
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
|
%{~ if listen_port_80_bool~}
|
||||||
|
listen 80;
|
||||||
|
%{~ endif ~}
|
||||||
|
|
||||||
ssl_certificate /etc/nginx/ssl/live/tryton.geeraert.eu/fullchain.pem;
|
ssl_certificate /etc/nginx/ssl/live/tryton.geeraert.eu/fullchain.pem;
|
||||||
ssl_certificate_key /etc/nginx/ssl/live/tryton.geeraert.eu/privkey.pem;
|
ssl_certificate_key /etc/nginx/ssl/live/tryton.geeraert.eu/privkey.pem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
%{~ if redirect_to_https_bool~}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
if ($host = www.${name_site}.tryton.geeraert.eu) {
|
if ($host = www.${name_site}.tryton.geeraert.eu) {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
@@ -58,4 +66,4 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
%{~ endif ~}
|
||||||
|
|||||||
Reference in New Issue
Block a user