Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ openwisp2_wireguard_crontab:
openwisp2_wireguard_vxlan_ipv4_method: link-local
openwisp2_wireguard_vxlan_ipv6_method: link-local

openwisp2_wireguard_uwsgi_processes: 1
openwisp2_wireguard_uwsgi_threads: 1
openwisp2_wireguard_uwsgi_extra_conf: |
single-interpreter=True
log-4xx=True
log-5xx=True
disable-logging=True
auto-procname=True

openwisp2_wireguard_required_variables:
- openwisp2_wireguard_controller_url
- openwisp2_wireguard_vpn_uuid
Expand Down
5 changes: 3 additions & 2 deletions templates/flask/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ callable=app
need-app=true
lazy-apps=true
master=true
processes=2
threads=2
processes={{ openwisp2_wireguard_uwsgi_processes }}
threads={{ openwisp2_wireguard_uwsgi_threads }}
single-interpreter=false
die-on-term=true
procname-prefix-spaced=openwisp2_wireguard_flask_app
Expand All @@ -18,3 +18,4 @@ ssl-verify-depth = 8
https = {{ openwisp2_wireguard_flask_host }}:{{openwisp2_wireguard_flask_port}},{{ openwisp2_wireguard_ssl_cert }},{{ openwisp2_wireguard_ssl_key }},HIGH
uid = {{ openwisp_user }}
gid = {{ openwisp_group }}
{{ openwisp2_wireguard_uwsgi_extra_conf }}
Loading