Nginx Proxy angepasst
All checks were successful
Angular Build & Deploy / deploy (push) Successful in 45s
All checks were successful
Angular Build & Deploy / deploy (push) Successful in 45s
This commit is contained in:
13
nginx.conf
13
nginx.conf
@@ -1,16 +1,15 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public, immutable";
|
||||
location /api/ {
|
||||
proxy_pass http://192.168.2.186:9090/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user