mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-06 12:03:38 +02:00
Remove proxy conditionals from mobileconfig template
This commit is contained in:
parent
c2987584d7
commit
392ad536de
2 changed files with 0 additions and 21 deletions
|
@ -9,7 +9,6 @@
|
|||
|
||||
- name: Set facts for mobileconfigs
|
||||
set_fact:
|
||||
proxy_enabled: false
|
||||
PayloadContentCA: "{{ lookup('file' , 'configs/{{ IP_subject_alt_name }}/pki/cacert.pem')|b64encode }}"
|
||||
|
||||
- name: Build the mobileconfigs
|
||||
|
|
|
@ -124,24 +124,12 @@
|
|||
<key>Proxies</key>
|
||||
<dict>
|
||||
<key>HTTPEnable</key>
|
||||
{% if proxy_enabled is defined and proxy_enabled == true %}
|
||||
<integer>1</integer>
|
||||
<key>HTTPPort</key>
|
||||
<integer>8118</integer>
|
||||
<key>HTTPProxy</key>
|
||||
<string>{{ local_service_ip }}</string>
|
||||
{% else %}
|
||||
<integer>0</integer>
|
||||
{% endif %}
|
||||
<key>HTTPSEnable</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
<key>UserDefinedName</key>
|
||||
{% if proxy_enabled is defined and proxy_enabled == true %}
|
||||
<string>Algo VPN {{ IP_subject_alt_name }} IKEv2 with proxy</string>
|
||||
{% else %}
|
||||
<string>Algo VPN {{ IP_subject_alt_name }} IKEv2</string>
|
||||
{% endif %}
|
||||
<key>VPNType</key>
|
||||
<string>IKEv2</string>
|
||||
</dict>
|
||||
|
@ -187,17 +175,9 @@
|
|||
</dict>
|
||||
</array>
|
||||
<key>PayloadDisplayName</key>
|
||||
{% if proxy_enabled is defined and proxy_enabled == true %}
|
||||
<string>{{ IP_subject_alt_name }} IKEv2 with proxy</string>
|
||||
{% else %}
|
||||
<string>{{ IP_subject_alt_name }} IKEv2</string>
|
||||
{% endif %}
|
||||
<key>PayloadIdentifier</key>
|
||||
{% if proxy_enabled is defined and proxy_enabled == true %}
|
||||
<string>donut.local.{{ 600000 | random | to_uuid | upper }}</string>
|
||||
{% else %}
|
||||
<string>donut.local.{{ 500000 | random | to_uuid | upper }}</string>
|
||||
{% endif %}
|
||||
<key>PayloadRemovalDisallowed</key>
|
||||
<false/>
|
||||
<key>PayloadType</key>
|
||||
|
|
Loading…
Add table
Reference in a new issue