diff --git a/config.py.sample b/config.py.sample index f1cdab4..4eb09e2 100644 --- a/config.py.sample +++ b/config.py.sample @@ -1,6 +1,5 @@ -# You can copy this into ~/.config/frontools/config.py -from pathlib import Path from os.path import expanduser +from pathlib import Path from frontools import Config # type: ignore @@ -48,11 +47,15 @@ PROD_NODES = [ # Misc urls I struggled to get on tenants EO_TEST_URLS = [ "https://portail-lessables.test.entrouvert.org", + "https://demarches-recette.cr-reunion.fr/", ] EO_PROD_URLS = [ # "https://lessablesdolonneen1clic.fr" # en 1 clic mais en 2315 caractères, erreur avec aiohttp + "https://demarches.cr-reunion.fr/" "https://demarches.grenoblealpesmetropole.fr/", "https://moncompte.grandlyon.com/login", + "https://support.grandlyon.com/", + "https://www.toodego.com/connect/", ] IMIO_URLS = [ @@ -249,26 +252,26 @@ async def CONFIG(config: Config) -> None: config.ignore_themes(*IGNORED_THEMES) - config.override( - "pbt", - [ - ( - r".*static/(?P[\w-]*)/style.css(.map)?.*", - rf"{PUBLIK_BASE_THEME_ROOT}/static/\g/style.css", - ), - ( - r".*static/(?P[\w-]*)/style.css(.map)?.*", - rf"{IMIO_THEME_ROOT}/static/\g/style.css", - ), - ], + config.add_override_source( + "local", + ( + r".*static/(?P[\w-]*)/style.css(.map)?.*", + rf"{PUBLIK_BASE_THEME_ROOT}/static/\g/style.css", + ), + ( + r".*static/(?P[\w-]*)/style.css(.map)?.*", + rf"{IMIO_THEME_ROOT}/static/\g/style.css", + ), ) config.block_urls( ".*google-analytics.com.*", ".*matomo.entrouvert.org.*", ".*matomo.php.*", + ".*matomo.js.*", ".*piwik.entrouvert.org.*", ".*piwik.php.*", ".*wikit.ai*", ".*xiti.com.*", + r".*lessablesdolonneen1clic.fr/media/uploads/.*\.mp4", )