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 {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
location /api/ {
|
||||||
expires 1y;
|
proxy_pass http://192.168.2.186:9090/;
|
||||||
add_header Cache-Control "public, immutable";
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user