Help

1

Odoo with Domain

Avatar
DWARKANATH BARI

Hello to all,

I set my domain as : https://www.simpleenergytech.com when i enter this showing nginx home page and after .com if i enter odoo port number i.e. 8069 . Now i want to set only this and when i enter https://www.simpleenergytech.com odoo login page will be open. Please guide me for the same.

4 Comments
Avatar
Discard
Avatar
The Protagonist
-

Hi,

Have you tried reverse proxy ?

Avatar
DWARKANATH BARI
-
Yes i installed odoo with domain name

On Thu, Oct 10, 2019 at 11:55 AM Exceptionally Eccentric <aosayooj@gmail.com> wrote:

Hi,

Have you tried reverse proxy ?

Sent by Odoo S.A. using Odoo.

Avatar
DWARKANATH BARI
-
Please give your step by step execution of reverse proxy i will check it with my.

On Thu, Oct 10, 2019 at 11:55 AM Exceptionally Eccentric <aosayooj@gmail.com> wrote:

Hi,

Have you tried reverse proxy ?

Sent by Odoo S.A. using Odoo.

Avatar
DWARKANATH BARI
-
Hello sir,
Please check my below file for my live domain and ip address

WHAT CHANGES I NEED TO DO WITH /nginx/nginx.conf ??????

PLEASE HELP ME FOR THIS 

IP Address is :104.237.10.246
Domain Name : surveyspan.com


server {
   # server_name simpleenergytech.com;
     server_name http://www.surveyspan.com
    listen 80;
    access_log /var/log/nginx/testing-access.log;
    error_log /var/log/nginx/testing-error.log;
    location /longpolling {
        proxy_connect_timeout   3600;
        proxy_read_timeout      3600;
        proxy_send_timeout      3600;
        send_timeout            3600;
        proxy_pass http://104.237.10.246:8069;    "HERE NEED TO ADD MY IP ADDRESS" ???????
        #proxy_pass http://127.0.0.1:8072;
}
    location / {
        proxy_connect_timeout   3600;
        proxy_read_timeout      3600;
        proxy_send_timeout      3600;
        send_timeout            3600;
        proxy_pass http://104.237.10.246:8069/"HERE NEED TO ADD MY IP ADDRESS" ???????
        #proxy_pass http://127.0.0.1:8069/;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    gzip on;
    gzip_min_length 1000;
}
upstream odoosurvey {
#server 127.0.0.1:8069 weight=1 fail_timeout=0;
server 104.237.10.246:8069 weight=1 fail_timeout=0; "HERE NEED TO ADD MY IP ADDRESS" ???????
}
upstream odoosurvey-im {
#server 127.0.0.1:8072 weight=1 fail_timeout=0;
server 104.237.10.246:8069 weight=1 fail_timeout=0; "HERE NEED TO ADD MY IP ADDRESS" ???????
}


On Sun, Oct 27, 2019 at 6:15 PM Sylvain Michel RATSARAFAHATRA <s.ratsarafahatra@etechconsulting-mg.com> wrote:

Une nouvelle réponse sur Odoo with Domain a été publiée. Cliquez ici pour accéder au message :

Voir la publication

Envoyé par Odoo S.A. using Odoo.

1 Answer
1
Best Answer

Below is a sample nginx configuration file that you can use for your Odoo installation. All the HTTP requests will be redirected to HTTPS.

sudo nano /etc/nginx/sites-enabled/simpleenergytech.com
upstream odoo {

server 127.0.0.1:8069;
}

upstream odoo-chat {
server 127.0.0.1:8072;
}

server {
server_name simpleenergytech.com;
return 301 https://simpleenergytech.com$request_uri;
}

server {
listen 443 ssl http2;
server_name simpleenergytech.com;

ssl_certificate /path/to/signed_cert_plus_intermediates;
ssl_certificate_key /path/to/private_key;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;

ssl_dhparam /path/to/dhparam.pem;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
ssl_prefer_server_ciphers on;

add_header Strict-Transport-Security max-age=15768000;

ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /path/to/root_CA_cert_plus_intermediates;
resolver 8.8.8.8 8.8.4.4;

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

proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;

location / {
proxy_redirect off;
proxy_pass http://odoo;
}

location /longpolling {
proxy_pass http://odoo-chat;
}

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

# gzip
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}

Best regards!

Avatar
Discard