Skip to content
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
31 changes: 26 additions & 5 deletions resources/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
server {
listen 80;
listen [::]:80;
server_name api.keyman.com.localhost;
server_name api.keyman.com.localhost api.keyman.com;
location / {
proxy_pass http://host.docker.internal:8058;
}
Expand All @@ -13,7 +13,7 @@ server {
server {
listen 80;
listen [::]:80;
server_name help.keyman.com.localhost;
server_name help.keyman.com.localhost help.keyman.com;
location / {
proxy_pass http://host.docker.internal:8055;
}
Expand All @@ -22,7 +22,7 @@ server {
server {
listen 80;
listen [::]:80;
server_name keyman.com.localhost;
server_name keyman.com.localhost keyman.com;
location / {
proxy_pass http://host.docker.internal:8053;
}
Expand All @@ -31,7 +31,7 @@ server {
server {
listen 80;
listen [::]:80;
server_name ~^(web\.keyman|keymanweb)\.com\.localhost;
server_name web.keyman.com.localhost keymanweb.com.localhost web.keyman.com keymanweb.com;
location / {
proxy_pass http://host.docker.internal:8057;
}
Expand All @@ -40,8 +40,29 @@ server {
server {
listen 80;
listen [::]:80;
server_name s.keyman.com.localhost;
server_name s.keyman.com.localhost s.keyman.com;
location / {
proxy_pass http://host.docker.internal:8054;
}
}

# note that in production, this port is not used for status.keyman.com
server {
listen 80;
listen [::]:80;
server_name status.keyman.com.localhost status.keyman.com;
location / {
proxy_pass http://host.docker.internal:8061;
}
}

# in development mode, backend is separate to frontend for status.keyman.com
# note that in production, 8060 is the backend and frontend!
server {
listen 80;
listen [::]:80;
server_name status-backend.keyman.com.localhost status-backend.keyman.com;
location / {
proxy_pass http://host.docker.internal:8060;
}
}