Browse Source

chore: redirect http to https

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/7612/head
Pranav C 9 months ago
parent
commit
2c78c5043d
  1. 7
      docker-compose/setup-script/noco.sh

7
docker-compose/setup-script/noco.sh

@ -352,12 +352,9 @@ cat > ./nginx-post-config/default.conf <<EOF
server { server {
listen 80; listen 80;
server_name $DOMAIN_NAME; server_name $DOMAIN_NAME;
location / { location / {
proxy_pass http://nocodb:8080; return 301 https://\$host\$request_uri;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
} }
location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {

Loading…
Cancel
Save