Ticket #2679: nginx.conf

File nginx.conf, 2.8 KB (added by marlonanjos@…, 2 years ago)
Line 
1
2#user nobody;
3worker_processes 1;
4
5error_log /var/log/nginx/error.log debug;
6#error_log logs/error.log notice;
7#error_log logs/error.log info;
8
9#pid logs/nginx.pid;
10
11
12events {
13 worker_connections 1024;
14}
15
16
17http {
18 include mime.types;
19 default_type application/octet-stream;
20
21 #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
22 # '$status $body_bytes_sent "$http_referer" '
23 # '"$http_user_agent" "$http_x_forwarded_for"';
24
25 #access_log logs/access.log main;
26
27 http2 on;
28 http3 on;
29
30 sendfile on;
31 #tcp_nopush on;
32
33 #keepalive_timeout 0;
34 keepalive_timeout 65;
35
36 #gzip on;
37
38 server {
39 listen 80;
40 server_name localhost;
41
42 #charset koi8-r;
43
44 #access_log logs/host.access.log main;
45
46 location / {
47 root html;
48 index index.html index.htm;
49 }
50
51 #error_page 404 /404.html;
52
53 # redirect server error pages to the static page /50x.html
54 #
55 error_page 500 502 503 504 /50x.html;
56 location = /50x.html {
57 root html;
58 }
59
60 # proxy the PHP scripts to Apache listening on 127.0.0.1:80
61 #
62 #location ~ \.php$ {
63 # proxy_pass http://127.0.0.1;
64 #}
65
66 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
67 #
68 #location ~ \.php$ {
69 # root html;
70 # fastcgi_pass 127.0.0.1:9000;
71 # fastcgi_index index.php;
72 # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
73 # include fastcgi_params;
74 #}
75
76 # deny access to .htaccess files, if Apache's document root
77 # concurs with nginx's one
78 #
79 #location ~ /\.ht {
80 # deny all;
81 #}
82 }
83
84
85 # another virtual host using mix of IP-, name-, and port-based configuration
86 #
87 #server {
88 # listen 8000;
89 # listen somename:8080;
90 # server_name somename alias another.alias;
91
92 # location / {
93 # root html;
94 # index index.html index.htm;
95 # }
96 #}
97
98
99 # HTTPS server
100 #
101 server {
102 listen 443 ssl;
103 listen 443 quic;
104 server_name marlon-test-jnb.tempurl.host;
105
106 ssl_certificate /etc/nginx/tempurl.cert;
107 ssl_certificate_key /etc/nginx/tempurl.key;
108
109 ssl_session_cache shared:SSL:1m;
110 ssl_session_timeout 5m;
111
112 ssl_ciphers HIGH:!aNULL:!MD5;
113 ssl_prefer_server_ciphers on;
114
115 add_header Alt-Svc 'h3=":443"; ma=86400';
116
117 # location / {
118 # root html;
119 # index index.html index.htm;
120 # }
121 }
122
123}