chore: redirect http to https

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2024-02-12 22:00:11 +05:30
parent e88cf7ff27
commit 2c78c5043d

View File

@@ -352,12 +352,9 @@ cat > ./nginx-post-config/default.conf <<EOF
server {
listen 80;
server_name $DOMAIN_NAME;
location / {
proxy_pass http://nocodb:8080;
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;
return 301 https://\$host\$request_uri;
}
location /.well-known/acme-challenge/ {