-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from kangketikonlen/stable
[23-11-2023 21:48] stable - Request merge stable to main branch
- Loading branch information
Showing
3 changed files
with
42 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,52 @@ | ||
user www-data; | ||
# /etc/nginx/nginx.conf | ||
|
||
user nginx; | ||
worker_processes auto; | ||
pid /run/nginx.pid; | ||
pcre_jit on; | ||
|
||
include /etc/nginx/modules-enabled/*.conf; | ||
error_log /var/log/nginx/error.log warn; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
include /etc/nginx/modules/*.conf; | ||
include /etc/nginx/conf.d/*.conf; | ||
|
||
events { | ||
worker_connections 2048; | ||
worker_connections 2048; | ||
} | ||
|
||
http { | ||
sendfile on; | ||
tcp_nopush on; | ||
tcp_nodelay on; | ||
keepalive_timeout 65; | ||
types_hash_max_size 2048; | ||
|
||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
# Logging Settings | ||
log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent'; | ||
access_log /var/log/nginx/access.log main; | ||
error_log /var/log/nginx/error.log; | ||
|
||
# Gzip Settings | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
server_tokens off; | ||
client_max_body_size 1m; | ||
sendfile on; | ||
tcp_nopush on; | ||
|
||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; | ||
ssl_prefer_server_ciphers on; | ||
ssl_session_cache shared:SSL:2m; | ||
ssl_session_timeout 1h; | ||
ssl_session_tickets off; | ||
|
||
# Gzip Settings | ||
gzip on; | ||
gzip_types text/plain text/css text/xml application/json application/javascript; | ||
gzip_vary on; | ||
gzip_proxied any; | ||
gzip_comp_level 6; | ||
gzip_buffers 16 8k; | ||
|
||
# Virtual Host Configs | ||
include /etc/nginx/conf.d/*.conf; | ||
include /etc/nginx/sites-enabled/*; | ||
# Helper variable for proxying websockets. | ||
map $http_upgrade $connection_upgrade { | ||
default upgrade; | ||
'' close; | ||
} | ||
|
||
|
||
# Logging Settings | ||
log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent'; | ||
access_log /var/log/nginx/access.log main; | ||
error_log /var/log/nginx/error.log; | ||
|
||
# Includes virtual hosts configs. | ||
include /etc/nginx/http.d/*.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters