Odoo documentation sources
Go to file
Julien Castiaux 09c42c5896 [FIX] deploy: nginx forwarded-host with tcp port
Install nginx using the nginx configuration found in the documentation
and changes the `listen` port to 8080. Start Odoo in `--proxy-mode`.

    listen 8080;
    server_name mycompany.odoo.com;
    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_pass http://127.0.0.1:8069;
    }

Inside your browser, access "http://mycompany.odoo.com:8080" you are
wrongly redirected to "http://mycompany.odoo.com:80".

Odoo uses the `X-Forwarded-Host` http header value to generate new URls,
in this configuration `$host` only contains the domain (=hostname using
the urllib terminology) instead of the domain+port (=netloc). The
variable that contains both the domain and the port is actually
`$http_host`.

closes odoo/documentation#6932

Closes: odoo/odoo#64643
X-original-commit: 8d1642984f
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
2023-12-15 09:23:31 +00:00
.tx [I18N] *: export source terms 2023-05-15 09:39:58 +02:00
content [FIX] deploy: nginx forwarded-host with tcp port 2023-12-15 09:23:31 +00:00
extensions [IMP] odoo_theme: toctrees-l1,l2 design improvement 2023-11-21 11:59:59 +00:00
locale [I18N] Update translation terms from Transifex 2023-12-10 01:40:26 +01:00
redirects [REF] Inventory: Restructure Inventory scope 2023-12-07 20:11:38 +00:00
static [FIX] accounting: cheat sheet reconcile 2023-12-12 12:46:16 +00:00
tests [IMP] tests: make review UX and resource files 2023-11-13 17:57:05 +00:00
.gitattributes [ADD] .gitattributes: include RST files in language statistic on GitHub 2022-04-29 11:01:52 +02:00
.gitignore [ADD] .gitattributes: include RST files in language statistic on GitHub 2022-04-29 11:01:52 +02:00
commit_template.txt [FIX] *: enforce 1 newline on files end 2022-11-18 20:30:00 +01:00
conf.py [IMP] supported_versions: release 17.0 2023-11-07 12:09:24 +00:00
COPYRIGHT [ADD] Add LICENSE and COPYRIGHT 2023-09-13 00:32:57 +00:00
LICENSE [ADD] Add LICENSE and COPYRIGHT 2023-09-13 00:32:57 +00:00
Makefile [IMP] tests: make review UX and resource files 2023-11-13 17:57:05 +00:00
README.md [IMP] README: remove version from links and rephrase explanations 2023-01-03 13:27:06 +01:00
requirements.txt [FIX] requirements: bump libsass to match odoo 2023-05-10 14:31:28 +02:00

Odoo documentation

Build the documentation locally

Requirements

  • Git
  • Python 3.6, 3.7, or 3.8
  • Python dependencies listed in the file requirements.txt.
  • Make
  • A local copy of the odoo/odoo repository (optional)

Instructions

  1. In a terminal, navigate to the root directory of the documentation and build it make. Additional commands are available with make help.
  2. Open the file documentation/_build/html/index.html in your web browser.
  3. See this guide for more detailed instructions.

Optional: place your local copy of the odoo/odoo repository in the parent directory or in the root directory of the documentation to build the latter with the documented Python docstrings.

Contribute to the documentation

For contributions to the content of the documentation, please refer to the Introduction Guide.

To report a content issue, request new content or ask a question, use the repository's issue tracker.

Learn More

To learn more about Odoo, in addition to the documentation, have a look at the official eLearning and Scale-up, The Business Game.