2023-02-11 05:29:50 +00:00
|
|
|
user nginx;
|
|
|
|
worker_processes auto;
|
|
|
|
|
|
|
|
error_log /var/log/nginx/error.log notice;
|
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
# This logging is way overkill and not at all permanent
|
|
|
|
# Just for debugging for now
|
|
|
|
log_format main '$host $remote_addr - $remote_user [$time_local] "$request" '
|
|
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
#tcp_nopush on;
|
|
|
|
|
|
|
|
keepalive_timeout 65;
|
2023-02-12 05:14:49 +00:00
|
|
|
gzip on;
|
2023-02-12 05:19:08 +00:00
|
|
|
gzip_min_length 2048;
|
|
|
|
gzip_proxied expired no-cache no-store private auth;
|
|
|
|
gzip_types text/plain text/xml text/javascript application/x-jacascript application/xml;
|
|
|
|
gzip_disable "MSIE [1-6]\.";
|
2023-02-11 05:29:50 +00:00
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
|
|
|
|
server {
|
2023-02-12 05:14:49 +00:00
|
|
|
server_name "shockrah.xyz";
|
2023-02-15 02:53:11 +00:00
|
|
|
|
2023-02-15 02:52:23 +00:00
|
|
|
root /var/www/shockrah.xyz;
|
|
|
|
index index.html;
|
|
|
|
|
2023-02-11 05:29:50 +00:00
|
|
|
location / {
|
2023-02-15 02:53:11 +00:00
|
|
|
try_files $uri $uri/ =404;
|
2023-02-11 05:29:50 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-12 05:19:08 +00:00
|
|
|
server {
|
|
|
|
server_name "resume.shockrah.xyz";
|
2023-02-15 02:52:23 +00:00
|
|
|
|
|
|
|
root /var/www/resume.shockrah.xyz;
|
|
|
|
index index.html;
|
|
|
|
|
2023-02-12 05:19:08 +00:00
|
|
|
location / {
|
2023-02-15 02:52:23 +00:00
|
|
|
try_files $uri $uri/ =404;
|
2023-02-12 05:19:08 +00:00
|
|
|
}
|
|
|
|
}
|
2023-02-11 05:29:50 +00:00
|
|
|
}
|
|
|
|
|