dockerfile nginx

This commit is contained in:
2026-04-09 15:47:13 +02:00
parent 40ee18fc01
commit d1425f4f7d
2 changed files with 16 additions and 4 deletions

15
nginx.conf Normal file
View File

@@ -0,0 +1,15 @@
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass https://restapi.testsite.deinedorfapp.de;
proxy_set_header Host restapi.testsite.deinedorfapp.de;
proxy_set_header X-Real-IP $remote_addr;
}
}