Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

This is a python script for changing the whitelisted IP for FileList api

License

Notifications You must be signed in to change notification settings

ihatethecloud/filelist-api-whitelist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filelist-api

Introduction

Use this instead! https://github.com/rursache/filelist-api-whitelist

This is a simple python script which uses a headless browser to update your public IP in FL profile.

How to build

docker build -t myregistry.example.com/filelist-api-whitelist:1

How to run

docker-compose.yml

  1. Create secrets:
echo "myUsername" | docker secret create my_username -
echo "myPassword" | docker secret create my_password -
  1. docker-compose.yml
version: '3.2'
services:
    changedetection:
      image: myregistry.example.com/filelist-api-whitelist:1 .
      container_name: filelist-api
      environment:
        - FL_USERNAME=/run/secrets/my_username
        - FL_PASSWORD=/run/secrets/my_password
        - CHECK_INTERVAL=10 #in minutes I suggest putting more than 5 minutes.
        - DRIVER=chrome # container_name of browserless port is always 3000
      restart: unless-stopped

    browserless-chrome:
      container_name: chrome
      image: browserless/chrome
      restart: unless-stopped

Quick and dirty (NOT RECOMMENDED)

There is a reson why have to do this so plese don't keep username/passwords in plain text.

But if you know what you are doing... here you go.

Compose file

version: '3.2'
services:
    changedetection:
      image: myregistry.example.com/filelist-api-whitelist:1 .
      container_name: filelist-api
      environment:
        - FL_USERNAME=YOUR_USER
        - FL_PASSWORD=YOUR_PASSWORD
        - CHECK_INTERVAL=10 # in minutes I suggest putting more than 5 minutes.
        - DRIVER=chrome # container_name of browserless port is always 3000
      restart: unless-stopped

    browserless-chrome:
      container_name: chrome
      image: browserless/chrome
      restart: unless-stopped

Contributing

Feel free to contribute or report bugs.

About

This is a python script for changing the whitelisted IP for FileList api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published