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

Update encam.standalone.nginx #137

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all 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
11 changes: 7 additions & 4 deletions system/encam.standalone.nginx
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
server {
listen 8080;
server_name _;
location /.well-known/ {
# Stop processing here to serve content from .well-known
root /config/updates;
try_files $uri =404;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 8443 ssl http2;
Expand All @@ -11,10 +18,6 @@
ssl_certificate_key /code/key.pem;
root /app/dist/;

location ^~ /.well-known/ {
# Stop processing here to serve content from .well-known
}

location / {
# Forward to index.html if the file does not exist to allow javascript to route
# https://stackoverflow.com/questions/43951720/react-router-and-nginx
Expand Down