All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 3m31s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 52s
Deploy to Staging / Verify Staging (pull_request) Successful in 9s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
The /guide SPA route conflicts with the static /guide/ screenshot directory. Nginx's try_files $uri/ matches the directory and issues a 301 redirect to /guide/ with trailing slash, bypassing SPA routing. Removing $uri/ ensures all non-file paths fall through to index.html for client-side routing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
776 B
Nginx Configuration File
32 lines
776 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
|
|
# HTTP server - for internal proxy use only
|
|
server {
|
|
listen 3000;
|
|
server_name motovaultpro.com *.motovaultpro.com localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Handle client-side routing
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
# Enable gzip compression
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_min_length 1024;
|
|
gzip_types text/plain text/css text/xml text/javascript application/javascript application/xml+rss application/json;
|
|
}
|
|
}
|