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 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<theme>[\w-]*)/style.css(.map)?.*",
rf"{PUBLIK_BASE_THEME_ROOT}/static/\g<theme>/style.css",
),
(
r".*static/(?P<theme>[\w-]*)/style.css(.map)?.*",
rf"{IMIO_THEME_ROOT}/static/\g<theme>/style.css",
),
],
config.add_override_source(
"local",
(
r".*static/(?P<theme>[\w-]*)/style.css(.map)?.*",
rf"{PUBLIK_BASE_THEME_ROOT}/static/\g<theme>/style.css",
),
(
r".*static/(?P<theme>[\w-]*)/style.css(.map)?.*",
rf"{IMIO_THEME_ROOT}/static/\g<theme>/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",
)