mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 16:36:44 +00:00
initial commit for full install scripts
This commit is contained in:
28
docker-compose/full-install/nginx/conf.d/default.conf
Normal file
28
docker-compose/full-install/nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
# server_name my.nocodb.com;
|
||||
# listen 443 default_server ssl;
|
||||
# listen [::]:443 ssl ;
|
||||
# ssl_certificate /etc/nginx/ssl/live/status.nocodb.com/fullchain.pem;
|
||||
# ssl_certificate_key /etc/nginx/ssl/live/status.nocodb.com/privkey.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://nocodb_backend;
|
||||
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;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_intercept_errors on;
|
||||
error_page 404 = @handle404;
|
||||
}
|
||||
|
||||
location @handle404 {
|
||||
rewrite ^ /dashboard permanent;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user