Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

two instances of Odoo and a single domain and ssl nginx:

By
Melvin Martinez
on 12/5/14, 2:03 PM 1,760 views

two instances of Odoo and a single domain and ssl nginx:
Ejm.


Instance 1: example.com: 8069
Instance 2: example.com: 8071

Instance 1 is the master with the following settings with nginx:

upstream oddo {
    server 127.0.0.1:8069;
}

server {
    listen      443 default;
    server_name example.com;

    access_log  /var/log/nginx/oddo.access.log;
    error_log   /var/log/nginx/oddo.error.log;

    ssl on;
    ssl_certificate     /etc/nginx/ssl/server.crt;
    ssl_certificate_key /etc/nginx/ssl/server.key;
    keepalive_timeout   60;

    ssl_ciphers             HIGH:!ADH:!MD5;
    ssl_protocols           SSLv3 TLSv1;
    ssl_prefer_server_ciphers on;

    proxy_buffers 16 64k;
    proxy_buffer_size 128k;

    location / {
        proxy_pass  http://oddo;
        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
        proxy_redirect off;

        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 https;
    }

    location ~* /web/static/ {
        proxy_cache_valid 200 60m;
        proxy_buffering on;
        expires 864000;
        proxy_pass http://oddo;
    }
}

server {
    listen      80;
    server_name example.com;

    add_header Strict-Transport-Security max-age=2592000;
    rewrite ^/.*$ https://$host$request_uri? permanent;
}

with ssl certificate: https://example.com

what I want is that if I add a link on the home page of instance1, can address instance2 using the same certificate ssl settings made with nginx, such https://example.com:8071

I have no experience in nginx, some light or idea how I can configure it?

Is that 2 use the same code and addons? The same database roles?

Fanha Giang
on 12/7/14, 3:57 AM

please share example with two site / instance example

sarkar
on 2/4/16, 12:55 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 12/5/14, 2:03 PM
Seen: 1760 times
Last updated: 3/16/15, 8:10 AM