tinyerp / erppeek

A versatile tool for Odoo / OpenERP. *** Forked as Odooly ⟶
https://github.com/tinyerp/odooly
Other
171 stars 99 forks source link

nginx port 80 and https connection? #37

Closed ericmachine88 closed 10 years ago

ericmachine88 commented 10 years ago

This is an indeed a good library :)

But I have 2 problems.

a) Right now, all my openerp is running behind nginx.

example,

http://myerpdomain.com

instead of

http://myerpdomain.com:8069 (i don't want people to access this).

What should I do to make this work?

b) What if all my sites are behind HTTPS too? What would be the recommended settings?

Hopefully the above 2 are supported. Thanks.

florentx commented 10 years ago

I use a lot erppeek with Nginx and HTTPS. There's no issue.

Either on the command line:

erppeek --server https://myerpdomain.com

Or in the erppeek.ini file:

[demo]
scheme = https
host = myerpdomain.com
port = 443
database = demo
username = joe

[DEFAULT]
host = localhost
port = 8069

Then connect to the declared environment:

erppeek --env demo
ericmachine88 commented 10 years ago

nice :) tested this and it works :)

another question

what if we are on nginx but no HTTPS. Can't access 8069 directly.

when go to http://myerpdomain.com and in nginx, it would call proxy_pass http://127.0.0.1:8069.

Any tips? Thanks.

florentx commented 10 years ago

if you put scheme = http in the configuration, with the right port 80, it should connect.

ericmachine88 commented 10 years ago

nice :) it works :)