infra/docker/beta/nginx.conf

50 lines
1.1 KiB
Nginx Configuration File
Raw Normal View History

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;
gzip on;
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 {
server_name "shockrah.xyz";
2023-02-11 05:29:50 +00:00
location / {
root /var/www/shockrah.xyz;
2023-02-11 05:29:50 +00:00
}
}
server {
server_name "resume.shockrah.xyz";
location / {
root /var/www/resume.shockrah.xyz;
}
}
2023-02-11 05:29:50 +00:00
}