mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
28 lines
669 B
Nginx Configuration File
28 lines
669 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
gzip on;
|
|
charset UTF-8;
|
|
server_name wise-ui;
|
|
|
|
location / {
|
|
# This would be the directory where your React app's static files are stored at
|
|
root /usr/share/nginx/html;
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
location /c/ {
|
|
try_files $uri /usr/share/nginx/html/index.html;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-NginX-Proxy true;
|
|
proxy_pass http://localhost:8080/api/;
|
|
proxy_ssl_session_reuse off;
|
|
proxy_set_header Host $http_host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
proxy_redirect off;
|
|
}
|
|
}
|