config: update sample config

This commit is contained in:
Corentin Sechet 2022-04-13 15:00:33 +02:00
parent 8ae1da16af
commit 7a89938d4f
1 changed files with 17 additions and 14 deletions

View File

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