Hi.
When deployed to production. I use this nginx config:
#domain-example.com is custom domain and tenant route is domain-example
server {
listen 443 ssl http2;
listen [::]:443 ssl;
server_name www.domain-example.com domain-example.com;
ssl_certificate /etc/letsencrypt/live/domain-example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain-example.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
proxy_pass http://domain-example.localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
}
Everything works fine when I'm testing http://domain-example.localhost:3000 on localhost on my development PC.
But when deployed to production with nginx proxy, it sees to cause problem.
my nuxt.config.ts looks like this:
modules: [
'nuxt-multi-tenancy'
],
multiTenancy: {
tenantDynamicRoute: 'site',
rootDomains: ["localhost",]
},
thanks for any help.
Hi.
When deployed to production. I use this nginx config:
#domain-example.com is custom domain and tenant route is domain-example
server {
listen 443 ssl http2;
listen [::]:443 ssl;
server_name www.domain-example.com domain-example.com;
ssl_certificate /etc/letsencrypt/live/domain-example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain-example.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
Everything works fine when I'm testing http://domain-example.localhost:3000 on localhost on my development PC.
But when deployed to production with nginx proxy, it sees to cause problem.
my nuxt.config.ts looks like this:
modules: [
'nuxt-multi-tenancy'
],
multiTenancy: {
tenantDynamicRoute: 'site',
rootDomains: ["localhost",]
},
thanks for any help.