zipusyan commited on
Commit
f5c15aa
·
verified ·
1 Parent(s): 3838239

Delete nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +0 -60
nginx.conf DELETED
@@ -1,60 +0,0 @@
1
- user root;
2
- worker_processes auto;
3
- pid /run/nginx.pid;
4
- daemon off;
5
-
6
- events {
7
- worker_connections 768;
8
- }
9
-
10
- http {
11
- sendfile on;
12
- tcp_nopush on;
13
- tcp_nodelay on;
14
- keepalive_timeout 65;
15
- types_hash_max_size 2048;
16
-
17
- include /etc/nginx/mime.types;
18
- default_type application/octet-stream;
19
-
20
- client_body_temp_path /tmp/nginx_body 1 2;
21
- proxy_temp_path /tmp/nginx_proxy;
22
- fastcgi_temp_path /tmp/nginx_fastcgi;
23
- uwsgi_temp_path /tmp/nginx_uwsgi;
24
- scgi_temp_path /tmp/nginx_scgi;
25
-
26
- access_log /var/log/nginx/access.log;
27
- error_log /var/log/nginx/error.log;
28
-
29
- server {
30
- listen 8088;
31
- server_name localhost;
32
-
33
- root /home/www;
34
- index index.php index.html;
35
-
36
- location / {
37
- try_files $uri $uri/ @opcode;
38
- }
39
-
40
- location ~ \.php$ {
41
- try_files $uri =404;
42
- include fastcgi_params;
43
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
44
- fastcgi_pass unix:/run/php/php7.4-fpm.sock;
45
- }
46
-
47
- location @opcode {
48
- proxy_pass http://127.0.0.1:8080;
49
- proxy_set_header X-Real-IP $remote_addr;
50
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
51
- proxy_set_header X-Forwarded-Host $host;
52
- proxy_set_header X-Forwarded-Port 443;
53
- proxy_set_header X-Forwarded-Proto https;
54
-
55
- proxy_http_version 1.1;
56
- proxy_set_header Upgrade $http_upgrade;
57
- proxy_set_header Connection "upgrade";
58
- }
59
- }
60
- }