2020-10-08 16:33:19 -05:00
|
|
|
user http;
|
|
|
|
worker_processes 4;
|
|
|
|
|
|
|
|
# Logs
|
|
|
|
error_log logs/error.log;
|
|
|
|
error_log logs/error.log notice;
|
|
|
|
error_log logs/error.log info;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
|
|
|
include mime.types;
|
|
|
|
include fastcgi.conf;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
server_tokens off;
|
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
gzip on;
|
|
|
|
|
|
|
|
# Redirect all HTTP to HTTPS
|
|
|
|
server {
|
2022-07-02 10:24:10 -05:00
|
|
|
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
2020-10-08 16:33:19 -05:00
|
|
|
server_name _;
|
2022-07-02 10:24:10 -05:00
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
2020-10-08 16:33:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
include ../conf.d/*.conf;
|
|
|
|
}
|