Skip to content

Commit

Permalink
flaresolverr tweaks and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davestephens committed Jun 11, 2024
1 parent e21725d commit 048cc8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
6 changes: 1 addition & 5 deletions roles/flaresolverr/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 2 additions & 5 deletions roles/flaresolverr/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>.

0 comments on commit 048cc8c

Please sign in to comment.