mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-10 06:04:15 +00:00
flaresolverr tweaks and fixes
This commit is contained in:
parent
e21725d935
commit
048cc8c3c5
3 changed files with 4 additions and 11 deletions
|
@ -3,11 +3,7 @@ flaresolverr_enabled: false
|
|||
flaresolverr_available_externally: false
|
||||
|
||||
# directories
|
||||
flaresolverr_config_directory: "{{ docker_home }}/flaresolverr/config"
|
||||
|
||||
# uid / gid
|
||||
flaresolverr_user_id: "0"
|
||||
flaresolverr_group_id: "0"
|
||||
flaresolverr_config_directory: "{{ docker_home }}/flaresolverr"
|
||||
|
||||
# network
|
||||
flaresolverr_port: "8191"
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
# mode: 0755
|
||||
with_items:
|
||||
- "{{ docker_home }}/flaresolverr/config"
|
||||
- "{{ flaresolverr_config_directory }}"
|
||||
|
||||
- name: FlareSolverr Docker Container
|
||||
community.docker.docker_container:
|
||||
|
@ -17,11 +16,9 @@
|
|||
volumes:
|
||||
- "{{ flaresolverr_config_directory }}:/config:rw"
|
||||
ports:
|
||||
- "{{ flaresolverr_port }}:5050"
|
||||
- "{{ flaresolverr_port }}:8191"
|
||||
env:
|
||||
TZ: "{{ ansible_nas_timezone }}"
|
||||
PUID: "{{ flaresolverr_user_id }}"
|
||||
PGID: "{{ flaresolverr_group_id }}"
|
||||
restart_policy: unless-stopped
|
||||
memory: "{{ flaresolverr_memory }}"
|
||||
labels:
|
||||
|
|
|
@ -6,6 +6,6 @@ FlareSolverr is a proxy server to bypass Cloudflare and DDoS-GUARD protection. S
|
|||
|
||||
## Usage
|
||||
|
||||
Set `flaresolverr_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
|
||||
Set `flaresolverr_enabled: true` in your `inventories/<your_inventory>/group_vars/nas.yml` file.
|
||||
|
||||
The FlareSolverr API can be accessed from <http://ansible_nas_host_or_ip:8191>.
|
Loading…
Reference in a new issue