2022-10-05 02:51:52 -05:00
|
|
|
# 2022-10-05 Hyperling
|
|
|
|
|
2023-07-05 20:54:53 -07:00
|
|
|
user nginx;
|
|
|
|
worker_processes auto;
|
2022-10-05 02:51:52 -05:00
|
|
|
|
2023-07-05 20:54:53 -07:00
|
|
|
error_log /var/log/nginx/error.log notice;
|
|
|
|
pid /var/run/nginx.pid;
|
2022-10-05 02:51:52 -05:00
|
|
|
|
|
|
|
events {
|
2023-07-05 20:54:53 -07:00
|
|
|
worker_connections 1024;
|
2022-10-05 02:51:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-07-05 20:54:53 -07:00
|
|
|
|
2022-10-05 02:51:52 -05:00
|
|
|
http {
|
2023-07-05 20:54:53 -07:00
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
2022-10-05 02:51:52 -05:00
|
|
|
|
2023-07-05 18:02:43 -07:00
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
2022-10-05 02:51:52 -05:00
|
|
|
|
2023-07-05 18:02:43 -07:00
|
|
|
access_log /var/log/nginx/access.log main;
|
2022-10-05 02:51:52 -05:00
|
|
|
|
2023-07-05 20:54:53 -07:00
|
|
|
sendfile on;
|
|
|
|
#tcp_nopush on;
|
2022-10-05 02:51:52 -05:00
|
|
|
|
2023-07-05 18:02:43 -07:00
|
|
|
keepalive_timeout 65;
|
2022-10-05 02:51:52 -05:00
|
|
|
|
2023-07-05 20:54:53 -07:00
|
|
|
#gzip on;
|
|
|
|
|
|
|
|
## LetsEncrypt Certbot Setup ##
|
|
|
|
# Allow nginx to fulfill LetsEncrypt Certbot challenges.
|
|
|
|
server {
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
|
|
root /etc/nginx/certs-letsencrypt;
|
|
|
|
}
|
|
|
|
}
|
2022-10-05 02:51:52 -05:00
|
|
|
|
2023-07-05 20:54:53 -07:00
|
|
|
## Reverse Proxied Website Configurations ##
|
2023-07-05 18:59:45 -07:00
|
|
|
include /etc/nginx/conf.d/*;
|
2022-10-05 02:51:52 -05:00
|
|
|
}
|