Skip to content

Commit

Permalink
[feature] Added openwisp2_wireguard_uwsgi_command
Browse files Browse the repository at this point in the history
Allows customizing the uwsgi command
  • Loading branch information
nemesifier committed Apr 29, 2022
1 parent 702af9a commit 456c067
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ Below are listed all the variables you can customize
openwisp2_wireguard_flask_port: 8081
# Host where Flask endpoint is run
openwisp2_wireguard_flask_host: 0.0.0.0
# Command used to run uwsgi from supervisor
openwisp2_wireguard_uwsgi_command: "{{ openwisp2_wireguard_path }}/env/bin/uwsgi uwsgi.ini"

# specify path to a valid SSL certificate and key
# (a self-signed SSL cert will be generated if omitted)
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ openwisp2_wireguard_flask_key: false
openwisp2_wireguard_flask_port: 8081
openwisp2_wireguard_flask_host: 0.0.0.0
openwisp2_wireguard_flask_endpoint: "/trigger-update"
openwisp2_wireguard_uwsgi_command: "{{ openwisp2_wireguard_path }}/env/bin/uwsgi uwsgi.ini"

openwisp2_wireguard_vxlan_ipv4_method: link-local
openwisp2_wireguard_vxlan_ipv6_method: link-local
Expand Down
2 changes: 1 addition & 1 deletion templates/supervisor/vpn_updater.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:openwisp-flask-vpn-updater-{{ openwisp2_wireguard_vpn_uuid }}]
user=root
directory={{ openwisp2_wireguard_path }}
command={{ openwisp2_wireguard_path }}/env/bin/uwsgi uwsgi.ini
command={{ openwisp2_wireguard_uwsgi_command }}
autostart=true
autorestart=true
stopsignal=INT
Expand Down

0 comments on commit 456c067

Please sign in to comment.