-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.nginx.conf
49 lines (37 loc) · 1.33 KB
/
.nginx.conf
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
server
{
listen 80;
server_name bd7.hokori.online;
index index.html index.htm index.php;
location / {
rewrite ^(.*)$ https://$host$1 permanent;
}
}
server
{
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate cert/bd7.hokori.online.pem;
ssl_certificate_key cert/bd7.hokori.online.key;
server_name bd7.hokori.online;
index index.html index.htm index.php;
root /www/wwwroot/BD7/frontend/build;
#error_page 404 /404.html;
include enable-php.conf;
location / {
root /www/wwwroot/BD7/frontend/build;
}
location /api {
proxy_pass http://localhost:8005;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
access_log /www/wwwlogs/access.log;
}