Skip to content

Commit

Permalink
[FIX] bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ismoilovdevml committed Sep 29, 2024
1 parent c556b36 commit 4999ac3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
5 changes: 5 additions & 0 deletions Ansible/nginx/inventory.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[nginx_servers]
debian ansible_host=10.128.0.47 ansible_user=root
ubuntu ansible_host=10.128.0.48 ansible_user=root
rhel ansible_host=10.128.0.45 ansible_user=root

[target_servers]
debian ansible_host=10.128.0.47 ansible_user=root
ubuntu ansible_host=10.128.0.48 ansible_user=root
rhel ansible_host=10.128.0.45 ansible_user=root
9 changes: 2 additions & 7 deletions Ansible/nginx/nginx_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
hosts: target_servers
become: yes
vars:
domen: "nginx.helm.uz" # Define the domain variable here

roles:
- role: nginxinc.nginx
vars:
nginx_http_template_enable: false # Disable inline HTTP template
domen: "nginx.helm.uz"

tasks:
- name: Create NGINX configuration in sites-available
Expand All @@ -20,7 +15,7 @@
server_name {{ domen }} www.{{ domen }};
location / {
proxy_pass http://localhost:3001;
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down
14 changes: 6 additions & 8 deletions Ansible/portainer/inventory.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
[portainer_ce]
; debian ansible_host=10.128.0.47 ansible_user=root
; ubuntu ansible_host=10.128.0.48 ansible_user=root
; rhel ansible_host=10.128.0.45 ansible_user=root
ubuntu ansible_host=206.189.226.65 ansible_user=root
debian ansible_host=10.128.0.47 ansible_user=root
ubuntu ansible_host=10.128.0.48 ansible_user=root
rhel ansible_host=10.128.0.45 ansible_user=root

[portainer_ee]
ubuntu ansible_host=206.189.226.65 ansible_user=root
; debian ansible_host=10.128.0.47 ansible_user=root
; ubuntu ansible_host=10.128.0.48 ansible_user=root
; rhel ansible_host=10.128.0.45 ansible_user=root
debian ansible_host=10.128.0.47 ansible_user=root
ubuntu ansible_host=10.128.0.48 ansible_user=root
rhel ansible_host=10.128.0.45 ansible_user=root

0 comments on commit 4999ac3

Please sign in to comment.