Skip to content

Commit

Permalink
Merge branch 'bugfix' of https://github.com/ajburnell/attack_range in…
Browse files Browse the repository at this point in the history
…to ajburnell-bugfix
  • Loading branch information
P4T12ICK committed Aug 3, 2023
2 parents 0fff723 + b3a09df commit 446fccf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packer/ansible/nginx_web_proxy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
- hosts: all
gather_facts: False
become: true
vars:
proxy_server_ip: "10.0.1.12"
proxy_server_port: "8000"
roles:
- nginx_web_proxy
- nginx_web_proxy
4 changes: 3 additions & 1 deletion packer/ansible/roles/nginx_web_proxy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

- name: restart splunk
become: true
command: "systemctl restart SplunkForwarder"
service:
name: SplunkForwarder
state: restarted

- name: restart nginx again
become: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ server {
location / {
# root /usr/share/nginx/html;
# index index.html index.htm;
proxy_pass http://{{nginx_web_proxy_host}}:{{nginx_web_proxy_port}};
proxy_pass http://{{proxy_server_ip}}:{{proxy_server_port}};
}

#error_page 404 /404.html;
Expand Down

0 comments on commit 446fccf

Please sign in to comment.