Skip to content

Commit

Permalink
redirect to https
Browse files Browse the repository at this point in the history
  • Loading branch information
amaldonadomat committed Feb 20, 2024
1 parent 8e14c33 commit a2d7833
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions client/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,9 @@ http {
sendfile on;

server {
listen 8080 default_server;
listen [::]:8080;

# Ideally, should figure this out. I believe it to be specific
# to the environment.
# resolver 127.0.0.11;

# Since this is the default (and only server) we don't need a
# valid server_name. _ is convention.
listen 8080;
server_name substrait-fiddle.com;
# Don't send nginx version in error pages. Not really needed.
server_tokens off;

root /app/static;

location /api/ {
proxy_pass http://api:9090; # Use the service name instead of IP
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}

location / {
try_files $uri $uri/ /index.html;
}
return 301 https://$host$request_uri;
}

server {
Expand Down

0 comments on commit a2d7833

Please sign in to comment.