Skip to content
Snippets Groups Projects
Commit 042b21df authored by Pelayo García's avatar Pelayo García
Browse files

feat: add uexporter

parent c96325d5
No related branches found
No related tags found
1 merge request!32feat: add uexporter
Pipeline #29112 passed
This commit is part of merge request !32. Comments created here will be created in the context of that merge request.
......@@ -355,6 +355,7 @@ odoo_role_odoo_proxy_mode: true
# Nginx configuration
nginx_configs:
upstream:
- upstream uexporter { server 127.0.0.1:9839; }
- upstream odoo { server 127.0.0.1:8069; }
- upstream nexporter { server 127.0.0.1:9100; }
- upstream pexporter { server 127.0.0.1:9187; }
......@@ -421,5 +422,13 @@ nginx_sites:
auth_basic "closed site";
auth_basic_user_file /etc/nginx/.bexporter.htpasswd;
}
location /uexporter/ {
include proxy_params;
proxy_redirect off;
proxy_pass http://uexporter/;
auth_basic "closed site";
auth_basic_user_file /etc/nginx/.uexporter.htpasswd;
}
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
......@@ -78,6 +78,7 @@ firewall_allowed_tcp_ports:
- "443" # for HTTPS.
basic_auth_users:
- { 'path': '/etc/nginx/.uexporter.htpasswd', 'name': 'uexporter', 'password': '{{ basic_auth_user_uexporter_password }}' }
- { 'path': '/etc/nginx/.nexporter.htpasswd', 'name': odoo, 'password': '{{ basic_auth_api_password }}' }
- { 'path': '/etc/nginx/.pexporter.htpasswd', 'name': 'pexporter', 'password': '{{ basic_auth_user_pexporter_password }}' }
- { 'path': '/etc/nginx/.bexporter.htpasswd', 'name': 'bexporter', 'password': '{{ basic_auth_user_bexporter_password }}' }
......@@ -77,3 +77,5 @@ basic_auth_user_bexporter_password: !vault |
63323336313662326433643264363965333534353561376335663464396333383465316630343333
6539306164323334650a313662336432313132636637626162613834333063333166333437656262
38366431343761626165633936313062366231363039616464353063633536663139
basic_auth_user_uexporter_password: "{{ basic_auth_user_nexporter_password }}"
\ No newline at end of file
......@@ -79,6 +79,7 @@ firewall_allowed_tcp_ports:
- "443" # for HTTPS.
basic_auth_users:
- { 'path': '/etc/nginx/.uexporter.htpasswd', 'name': 'uexporter', 'password': '{{ basic_auth_user_uexporter_password }}' }
- { 'path': '/etc/nginx/.nexporter.htpasswd', 'name': odoo, 'password': '{{ basic_auth_api_password }}' }
- { 'path': '/etc/nginx/.pexporter.htpasswd', 'name': 'pexporter', 'password': '{{ basic_auth_user_pexporter_password }}' }
- { 'path': '/etc/nginx/.bexporter.htpasswd', 'name': 'bexporter', 'password': '{{ basic_auth_user_bexporter_password }}' }
......@@ -77,3 +77,5 @@ basic_auth_user_bexporter_password: !vault |
63323336313662326433643264363965333534353561376335663464396333383465316630343333
6539306164323334650a313662336432313132636637626162613834333063333166333437656262
38366431343761626165633936313062366231363039616464353063633536663139
basic_auth_user_uexporter_password: "{{ basic_auth_user_nexporter_password }}"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment