Spaces:
Sleeping
Sleeping
Commit
·
eee7867
1
Parent(s):
8537e70
- nginx.conf +1 -35
nginx.conf
CHANGED
@@ -1,56 +1,22 @@
|
|
1 |
-
#############################
|
2 |
-
# 1) Global settings
|
3 |
-
#############################
|
4 |
-
|
5 |
-
# (Optional) which user nginx workers run as—ignored if you start nginx as non-root,
|
6 |
-
# but harmless to keep here
|
7 |
-
user www-data;
|
8 |
-
|
9 |
-
# Where to write the master PID file
|
10 |
pid /var/run/nginx/nginx.pid;
|
11 |
-
|
12 |
-
# Global log destination
|
13 |
error_log /dev/stderr warn;
|
14 |
-
# Global access log (won’t record per-server access, but it’s a catch-all)
|
15 |
-
access_log /dev/stdout combined;
|
16 |
-
|
17 |
-
# Number of worker processes (auto → one per CPU)
|
18 |
worker_processes auto;
|
19 |
|
20 |
-
|
21 |
-
#############################
|
22 |
-
# 2) Events block
|
23 |
-
#############################
|
24 |
-
|
25 |
events {
|
26 |
-
# Max simultaneous connections per worker
|
27 |
worker_connections 1024;
|
28 |
}
|
29 |
|
30 |
-
|
31 |
-
#############################
|
32 |
-
# 3) HTTP block
|
33 |
-
#############################
|
34 |
-
|
35 |
http {
|
36 |
-
|
37 |
include /etc/nginx/mime.types;
|
38 |
default_type application/octet-stream;
|
39 |
|
40 |
-
# Upstream keepalive, timeouts, etc (tune as you like)
|
41 |
sendfile on;
|
42 |
tcp_nopush on;
|
43 |
tcp_nodelay on;
|
44 |
keepalive_timeout 65;
|
45 |
types_hash_max_size 2048;
|
46 |
|
47 |
-
# Include any extra configs (optional)
|
48 |
-
# include /etc/nginx/conf.d/*.conf;
|
49 |
-
|
50 |
-
#############################
|
51 |
-
# 4) Your server block
|
52 |
-
#############################
|
53 |
-
|
54 |
server {
|
55 |
listen 4444 default_server;
|
56 |
listen [::]:4444 default_server;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
pid /var/run/nginx/nginx.pid;
|
|
|
|
|
2 |
error_log /dev/stderr warn;
|
|
|
|
|
|
|
|
|
3 |
worker_processes auto;
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
events {
|
|
|
6 |
worker_connections 1024;
|
7 |
}
|
8 |
|
|
|
|
|
|
|
|
|
|
|
9 |
http {
|
10 |
+
access_log /dev/stdout combined;
|
11 |
include /etc/nginx/mime.types;
|
12 |
default_type application/octet-stream;
|
13 |
|
|
|
14 |
sendfile on;
|
15 |
tcp_nopush on;
|
16 |
tcp_nodelay on;
|
17 |
keepalive_timeout 65;
|
18 |
types_hash_max_size 2048;
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
server {
|
21 |
listen 4444 default_server;
|
22 |
listen [::]:4444 default_server;
|