Odoo Nginx Proxy
Install
Using pip3 on local system:
pip3 install odoo_auto_proxy
In docker environment
docker run -d -v "$PWD/../nginx_conf:/etc/nginx/conf.d" -e NGINX_CONTAINER_NAME=odoo -e URL_DOMAIN=localhost odoo_auto_proxy
Run
mkdir nginx_conf
docker run -d -v "$PWD/../nginx_conf:/etc/nginx/conf.d" -p 80:80 --name odoo nginx
python3 -m odoo_reverse_proxy -c odoo -f ../nginx_conf
docker-compose -f exemple_odoo_compose.yml up
# Install certbot on nginx container
mkdir -p /var/www/letsencrypt
apt update
apt install -y software-properties-common
add-apt-repository ppa:certbot/certbot
apt update
apt install -y python-certbot-apache apt install gnupg
apt install -y certbot
apt install -y python-certbot-nginx
If this is not working, the generated template may be wrong. Check it by running:
docker exec odoo nginx -s reload
where odoo is your nginx container
Issues
Port is lost with redirection: accessing odoo_server.localhost:8000 redirect us to odoo_server.localhost/web, we can only use port 80 (and maybe 443) as forward for nginx
Some values are override manually (web_upstream, proxy_pass and poll_upstream): remove them from config and template?
TODO
Add certbot support
Make the python program available on pypi
Create dockerfile, docker image and docker-compose for the service
Metadata
Release files for odoo-auto-proxy 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| odoo_auto_proxy-0.1.3.tar.gz | 9.6 kB | Without provenance | Details for odoo_auto_proxy-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_auto_proxy-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for odoo_auto_proxy-0.1.3-py3-none-any.whl |
Total release size: 21.6 kB
Release files / odoo_auto_proxy-0.1.3.tar.gz
| Download URL | odoo_auto_proxy-0.1.3.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65d886340b4fd0c87382f20064b6eb2cd3e20c00128e2298bc4a5ecc07f2245a
|
|
BLAKE2b-256 checksum How to use checksums |
a0970c92673759930f9d405aa89c139957f026cab00e8e45a7854d50fc1b2ceb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
|
Release files / odoo_auto_proxy-0.1.3-py3-none-any.whl
| Download URL | odoo_auto_proxy-0.1.3-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
564044c1ed74546e43aaefe65a3eaf891268106877288cf15ecd126735cfb8c7
|
|
BLAKE2b-256 checksum How to use checksums |
f275d7edc352bf11a51fafd1f93aee72e4827778753532afca12fee1d5bb2c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
|
Security for odoo-auto-proxy 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.