Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after create server database, unable to open the server site. #824

Open
elliotxin opened this issue Dec 26, 2018 · 0 comments
Open

after create server database, unable to open the server site. #824

elliotxin opened this issue Dec 26, 2018 · 0 comments

Comments

@elliotxin
Copy link

elliotxin commented Dec 26, 2018

I used docker install the odoo11 saas,
after that i fellow this instruction "https://odoo-saas-tools.readthedocs.io/en/11.0/setup/install.html" manual setting.
I was created the main database name same with my domain(example.com)
after that i enter the example.com to the browser and enable open the odoo backend login page, and install the saas_portal.
After this step, i created s1.example.com database,and enter s1.example.com to browser, then can not open the website.
my /etc/nginx/conf.d/portal.conf setting like this:

server {
    listen 80;
    #rewrite ^/.*$ https://$host$request_uri? permanent; #Uncomment this line in case you want to use https only
    server_name example.com *.example.com;

    if ($host ~* ^([^\.]+)\.([^\.]+\.[^\.]+)$) {
         set $subdomain $1;
         set $domain $2;
     }

    #include odoo_params;
    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 /longpolling {
        proxy_pass http://82.96.56.23:8072;
    }
   location / {
        proxy_pass http://82.96.56.23:8069;
    }

    location ~* /web/static/ {
        proxy_cache_valid 200 90m;
        proxy_buffering    on;
        expires 864000;
        proxy_pass http://82.96.56.23:8069;
    }

my odoo config like this:

[options]
addons_path = /mnt/odoo-source/odoo/addons,/mnt/odoo-source/addons,/mnt/addons/OCA/account-closing,/mnt/addons/OCA/account-financial-reporting,/mnt/addons/OCA/account-financial-tools,/mnt/addons/OCA/account-inv$
admin_passwd = pass123
data_dir=/mnt/data-dir

dbfilter = ^%h$

server_wide_modules = web,base_session_store_psql
workers = 0

limit_time_cpu = 600
limit_time_real = 1200

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant