Files
nocodb/docker-compose/nginx/nocodb.example.domain.conf
Naveen MR a3fc9bdc8c docs : adding setup with nginx, certbot with domain config.
Thanks to an end user who sent this.

Signed-off-by: Naveen MR <oof1lab@gmail.com>
2022-02-18 11:45:50 +00:00

29 lines
626 B
Plaintext

upstream nocodb {
server nocodb_app:8080;
}
server {
server_name nocodb.example.domain;
listen 80;
listen [::]:80;
# Redirect to ssl
return 301 https://$host$request_uri;
}
server {
server_name nocodb.example.domain;
listen 443 ssl http2;
listen [::]:443 ssl http2;
#SSL configuration
include /etc/nginx/ssl.conf;
include /etc/nginx/certbot-challenge.conf;
location / {
proxy_pass http://nocodb;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
}
}