20 lines
533 B
Nginx Configuration File
20 lines
533 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
root /usr/share/nginx/html;
|
|
index dashboard.html;
|
|
|
|
# Proxy Gitea API to avoid CORS issues
|
|
# Use host gateway to reach Gitea on the Docker host at port 3000
|
|
location /gitea/ {
|
|
proxy_pass http://host.docker.internal:3000/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /dashboard.html;
|
|
}
|
|
}
|