Commit 9e7306fc authored by HgO's avatar HgO
Browse files

webhook listen on specific ip address

parent 23b8611b
Pipeline #811 passed with stage
in 5 minutes and 39 seconds
webhook_name: github-pull
webhook_owner: labriqueinter-net
webhook_group: "{{ webhook_owner }}"
webhook_network_interface: ens18
webhook_script: webhook/scripts/pull.sh
webhook_working_dir: /var/www/labriqueinter-net/dist
webhook_token: "{{ vault_webhook_token }}"
......
webhook_name: github-pull-webhook
webhook_owner: webhook
webhook_group: "{{ webhook_owner }}"
webhook_network_interface: eth1
webhook_script: webhook/scripts/pull.sh
webhook_working_dir: /var/www/webhook/dist
webhook_token: github-secret
......
......@@ -7,7 +7,7 @@ After=network.target
Type=simple
Restart=always
RestartSec=2s
ExecStart=/usr/bin/webhook --verbose --port 9000 --hooks /etc/webhook/config.yml
ExecStart=/usr/bin/webhook --verbose --ip {{ lookup('vars', 'ansible_' + webhook_network_interface).ipv4.address }} --port 9000 --hooks /etc/webhook/config.yml
ExecReload = /bin/kill -s USR1 $MAINPID
ExecStop = /bin/kill -s TERM $MAINPID
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment