Skip to content
Extraits de code Groupes Projets
Valider 8ebee17e rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[ADD] port on prod extra urls

parent d964a03f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -99,7 +99,8 @@ odoo_prod_example: # To be renamed odoo_prod
## OPTIONAL extra_urls to be accessible from this Odoo intance only
## (if URLs need to be accessible from both prod and non-prod instances, use whitelisted_urls instead)
# extra_urls:
# - "docs.example.org"
# - url: "docs.example.org"
# port: 443
## OPTIONAL parameters for deploying another app (for instance a JS app)
# extra_app:
# - name: odoo_app
......
......@@ -137,21 +137,21 @@ services:
co.elastic.logs/enabled: "false"
{% endif %}
{% if restrict_internet_access and odoo_prod.extra_urls is defined %}
{% for url in odoo_prod.extra_urls %}
{% for server in odoo_prod.extra_urls %}
{{ url }}:
{{ server.url }}:
image: tecnativa/whitelist
container_name: odoo_{{ url }}
container_name: odoo_{{ server.url }}
labels:
co.elastic.logs/enabled: "false"
networks:
extrawhitelists_proxy:
aliases:
- "{{ url }}"
- "{{ server.url }}"
extrawhitelists_public:
environment:
PORT: "443"
TARGET: "{{ url }}"
PORT: "{{ server.port }}"
TARGET: "{{ server.url }}"
PRE_RESOLVE: 1
restart: unless-stopped
{% endfor %}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter