mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 21:38:03 +00:00
fix nginx.conf
This commit is contained in:
committed by
missytake
parent
dcb614911a
commit
505ad36b36
@@ -2,7 +2,6 @@ user www-data;
|
|||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
pid /run/nginx.pid;
|
pid /run/nginx.pid;
|
||||||
error_log stderr;
|
error_log stderr;
|
||||||
access_log syslog:server=unix:/dev/log combined;
|
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 768;
|
worker_connections 768;
|
||||||
@@ -36,6 +35,8 @@ http {
|
|||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
|
access_log syslog:server=unix:/dev/log;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
# First attempt to serve request as file, then
|
# First attempt to serve request as file, then
|
||||||
# as directory, then fall back to displaying a 404.
|
# as directory, then fall back to displaying a 404.
|
||||||
@@ -81,5 +82,6 @@ http {
|
|||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl;
|
||||||
server_name www.{{ config.domain_name }};
|
server_name www.{{ config.domain_name }};
|
||||||
return 301 $scheme://{{ config.domain_name }}$request_uri;
|
return 301 $scheme://{{ config.domain_name }}$request_uri;
|
||||||
|
access_log syslog:server=unix:/dev/log;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user