diff options
Diffstat (limited to 'roles/web/files')
-rw-r--r-- | roles/web/files/nginx/nginx.conf | 55 | ||||
-rw-r--r-- | roles/web/files/nginx/nginx.logrotate | 12 |
2 files changed, 0 insertions, 67 deletions
diff --git a/roles/web/files/nginx/nginx.conf b/roles/web/files/nginx/nginx.conf deleted file mode 100644 index ce8302d..0000000 --- a/roles/web/files/nginx/nginx.conf +++ /dev/null @@ -1,55 +0,0 @@ -# Run workers under http user. -user http; - -# Set number of worker processes to number of available CPU cores. -worker_processes 1; - -# Log errors in a separate file. -error_log /var/log/nginx/error.log; - -# Write a PID-file. -pid /run/nginx.pid; - - -events { - # Maximum number of simultaneous connections that can be opened by a worker - # process. - # worker_connections 512; -} - - -http { - include mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - # Use log_format defined above. - access_log /var/log/nginx/access.log main; - - # Enable use of sendfile. - sendfile on; - - # Set keepalive timeout to 65 seconds. - keepalive_timeout 65; - - # Set types_hash_max_size to 2048 to avoid warning in logs. - types_hash_max_size 4096; - - # Load configs for all enabled sites. - include /etc/nginx/sites-enabled/*; - - server { - # Listen on port 80 and become a default server. - listen 80; - listen [::]:80 default_server; - - # Serve as a default server block. - server_name _; - - # Redirect any non-matched request to default page. - return 301 https://ilvokhin.com$request_uri; - } -} diff --git a/roles/web/files/nginx/nginx.logrotate b/roles/web/files/nginx/nginx.logrotate deleted file mode 100644 index da8ba47..0000000 --- a/roles/web/files/nginx/nginx.logrotate +++ /dev/null @@ -1,12 +0,0 @@ -/var/log/nginx/*log { - missingok - notifempty - create 640 http root - daily - rotate 14 - sharedscripts - compress - postrotate - test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid` - endscript -} |