mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-26 02:05:05 +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
|
flaresolverr_available_externally: false
|
||||||
|
|
||||||
# directories
|
# directories
|
||||||
flaresolverr_config_directory: "{{ docker_home }}/flaresolverr/config"
|
flaresolverr_config_directory: "{{ docker_home }}/flaresolverr"
|
||||||
|
|
||||||
# uid / gid
|
|
||||||
flaresolverr_user_id: "0"
|
|
||||||
flaresolverr_group_id: "0"
|
|
||||||
|
|
||||||
# network
|
# network
|
||||||
flaresolverr_port: "8191"
|
flaresolverr_port: "8191"
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
# mode: 0755
|
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ docker_home }}/flaresolverr/config"
|
- "{{ flaresolverr_config_directory }}"
|
||||||
|
|
||||||
- name: FlareSolverr Docker Container
|
- name: FlareSolverr Docker Container
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
|
@ -17,11 +16,9 @@
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ flaresolverr_config_directory }}:/config:rw"
|
- "{{ flaresolverr_config_directory }}:/config:rw"
|
||||||
ports:
|
ports:
|
||||||
- "{{ flaresolverr_port }}:5050"
|
- "{{ flaresolverr_port }}:8191"
|
||||||
env:
|
env:
|
||||||
TZ: "{{ ansible_nas_timezone }}"
|
TZ: "{{ ansible_nas_timezone }}"
|
||||||
PUID: "{{ flaresolverr_user_id }}"
|
|
||||||
PGID: "{{ flaresolverr_group_id }}"
|
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: "{{ flaresolverr_memory }}"
|
memory: "{{ flaresolverr_memory }}"
|
||||||
labels:
|
labels:
|
||||||
|
|
|
@ -6,6 +6,6 @@ FlareSolverr is a proxy server to bypass Cloudflare and DDoS-GUARD protection. S
|
||||||
|
|
||||||
## Usage
|
## 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>.
|
The FlareSolverr API can be accessed from <http://ansible_nas_host_or_ip:8191>.
|
Loading…
Reference in a new issue