Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update nginx.conf.template to serve all routes from the front-end Vue app #76

Merged
merged 3 commits into from
Jul 18, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions proxy/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,15 @@ http {
# proxy_redirect default;
}

# just pass this through to the front-end vue app
location /about {
try_files /index.html =404;
}
# Just pass this through to the front-end Vue app
location /about {
try_files /index.html =404;
}

# Catch-all to handle all other requests
location / {
try_files $uri $uri/ /index.html;
}
}

# Redirect all http requests to the SSL endpoint and the correct domain name
Expand Down
Loading