-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
32 lines (26 loc) · 704 Bytes
/
Copy pathnginx.conf
File metadata and controls
32 lines (26 loc) · 704 Bytes
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
server {
listen 80;
server_name _;
root /var/www/html/public;
index index.html index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location /api/ {
rewrite ^/api/(.*)$ /index.php?_url=/$1 break;
proxy_pass http://app:9000;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass app:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /frontend/ {
alias /var/www/html/public/frontend/;
try_files $uri $uri/ =404;
}
location /metrics {
proxy_pass http://wg-exporter:9411/metrics;
}
}