diff --git a/client/nginx.conf b/client/nginx.conf index a085e07..9ee27da 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -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 {