Giter Club home page Giter Club logo

docker-odoo-nginx's Introduction

docker-odoo-nginx

An image that includes a configuration file set up to run with Odoo.

The configuration file should work from Odoo 8.0 to 12.0 and up.

Configuration

Odoo host name

By default, nginx is configured to proxy pass on the host named "odoo". This can be changed with the environment variable NGX_ODOO_HOST.

Proxy cache size

By default, nginx is configured to proxy cahce of 10m. This can be changed with the environment variable NGX_CACHE_SIZE.

Odoo long polling port

By default, nginx is configured to root longpolling url on port 8072. This can be changed with the environment variable NGX_ODOO_LONGPOLLING

Odoo pdfcontent issue

In some casesthe pdfjs cannot compute the byte_content correctly, to fix the issue, we deactivate this issue on nginx (More info: #29) This can be activated with the environment variable NGX_ODOO_PDFCONTENT

HTTP accesses

Custom access allow/deny can be configured using the environment variable NGX_HTTP_ACCESS with using a multiline content such as:

deny 192.168.1.1;
allow 192.168.1.0/24;
deny all;

HTACCESS

You can restrict access to one or more specific location using environment variable NGX_ODOO_EXTRA_LOCATION such as:

['/products/catalog']

or multiple locations

['/products/catalog','/stock/locations']

you must use environment variable NGX_HTPASSWD to set user/password

you will need htpasswd to generate users/password, it's present in package apache2_utils

sudo apt-get install apache2_utils

htpasswd syntax:

htpasswd -nb <LOGIN> <PASSWORD>
htpasswd -nb vrenaville camptocamp

set the result in the variable 'NGX_HTPASSWD' ex:

vrenaville:$apr1$lDdea9Jt$DAJQG0W1s4JEuuVQQxiur.

Secure cookies

If you want all cookies to be have the Secure attribute, then you can set the environment variable NGX_ODOO_SECURE_COOKIES to 1.

docker-odoo-nginx's People

Contributors

grindtildeath avatar guewen avatar gurneyalex avatar p-tombez avatar sebalix avatar tdu avatar vrenaville avatar yann-soubeyrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-odoo-nginx's Issues

Returns 404 errors for /web/content path (assets)

Tested on Odoo 10.0 (on a rancher environment)

Since version 1.2.0, assets are unreachable.
404 are returned for all /web/content paths.

Falling back to 1.1.0 works.

It was reported to me that it is working on a local config, so it might be an issue with rancher config.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.