-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.autotrust.conf
More file actions
72 lines (59 loc) · 2.06 KB
/
nginx.autotrust.conf
File metadata and controls
72 lines (59 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
worker_processes 1;
events {
worker_connections 1024;
}
http {
include /opt/homebrew/etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 8443 ssl;
server_name localhost;
ssl_certificate /Users/rv/Projects/7CS069/.certs/nginx-selfsigned.crt;
ssl_certificate_key /Users/rv/Projects/7CS069/.certs/nginx-selfsigned.key;
root /Users/rv/Projects/7CS069/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /opt/homebrew/etc/nginx/fastcgi_params;
}
location /reverb {
rewrite ^/reverb/?(.*)$ /$1 break;
proxy_pass http://127.0.0.1:8085;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header Origin $http_origin;
proxy_read_timeout 60s;
}
}
server {
listen 8080;
server_name localhost;
root /Users/rv/Projects/7CS069/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /opt/homebrew/etc/nginx/fastcgi_params;
}
location /reverb {
proxy_pass http://127.0.0.1:8085;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header Origin $http_origin;
proxy_read_timeout 60s;
}
}
}