2020-04-09 22:06:58 +01:00
|
|
|
user nginx;
|
|
|
|
worker_processes auto;
|
|
|
|
|
|
|
|
error_log stderr;
|
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
|
2020-04-10 12:25:21 +01:00
|
|
|
access_log /dev/stdout;
|
2020-04-09 22:06:58 +01:00
|
|
|
|
2020-04-10 12:43:38 +01:00
|
|
|
server_tokens off;
|
2020-04-10 12:07:36 +01:00
|
|
|
|
2020-04-09 22:06:58 +01:00
|
|
|
sendfile on;
|
|
|
|
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
|
|
|
gzip on;
|
2020-09-02 20:43:00 +01:00
|
|
|
gzip_static on;
|
2020-04-09 22:06:58 +01:00
|
|
|
|
2020-05-10 15:43:43 +01:00
|
|
|
gzip_types *;
|
|
|
|
|
2020-04-09 22:06:58 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
2020-09-05 17:39:05 +01:00
|
|
|
server_name theorangeone.net;
|
2020-04-10 12:25:21 +01:00
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html;
|
2020-04-09 22:06:58 +01:00
|
|
|
|
2020-04-10 12:25:21 +01:00
|
|
|
set_real_ip_from 0.0.0.0/0;
|
|
|
|
real_ip_header X-Forwarded-For;
|
|
|
|
|
2020-04-10 12:43:38 +01:00
|
|
|
add_header X-Frame-Options "SAMEORIGIN";
|
|
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
|
|
add_header X-Content-Type-Options "nosniff";
|
|
|
|
add_header Referrer-Policy "same-origin";
|
|
|
|
add_header Strict-Transport-Security "max-age=5184000";
|
|
|
|
|
2020-04-10 13:59:56 +01:00
|
|
|
location /ping {
|
2020-04-11 23:45:21 +01:00
|
|
|
return 200 "PONG";
|
2020-04-10 13:59:56 +01:00
|
|
|
}
|
|
|
|
|
2020-05-10 16:46:37 +01:00
|
|
|
location ~* \.(png|jpg|gif|svg|txt|css|js|xml|eot|ttf|woff2|woff)$ {
|
|
|
|
add_header Cache-Control "public, max-age=0, must-revalidate";
|
2020-04-11 23:37:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location = /favicon.ico {
|
|
|
|
return 302 /img/logo-transparent.png;
|
|
|
|
}
|
|
|
|
|
2020-04-09 22:06:58 +01:00
|
|
|
error_page 404 /404.html;
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
}
|
|
|
|
|
2020-09-05 17:39:05 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name www.theorangeone.net;
|
|
|
|
return 303 $scheme://theorangeone.net$request_uri;
|
|
|
|
}
|
2020-04-09 22:06:58 +01:00
|
|
|
}
|