rss-feeder-mobilizon/config.ts

35 lines
1.9 KiB
TypeScript
Raw Permalink Normal View History

2021-01-05 11:17:54 +01:00
const parserConfig = {
// sources of data
rss_feed_url: "https://www.agendadulibre.org/events.rss?tag=openstreetmap",
// https://osmcal.org/static/api.html api doc
// see also https://wiki.openstreetmap.org/wiki/Template:Calendar
osmcal_url: "https://osmcal.org/api/v2/events/", // outputs json of coming events from https://osmcal.org/
// mobilizon instance
feeder_mobilizon_user_id: "3", // organizer_actor_id pour rattacher les nouveaux évènements à un utilisateur. 3 est le premier admin créé.
mobilizon_public_url: "https://mobilizon.openstreetmap.fr", // url publique de l'instance mobilizon pour créer les url d'évènements
2022-01-10 12:17:34 +01:00
dev_url: "http://127.0.0.1:4000/api", // url publique de l'instance mobilizon pour créer les url d'évènements
2021-01-05 11:17:54 +01:00
// database of mobilizon
db_name: "mobilizon_dev",
db_user: "mobilizon",
2022-01-10 11:06:31 +01:00
db_pass: "0eHmz99Rb2WEhPKbwGJuAU-Da04jVV36QjuOOeJDOsK_Q1w7pikqIR04WqHoZLQi",
2021-01-05 11:17:54 +01:00
// other configs
2022-01-10 11:06:31 +01:00
askAgendaDuLibre: true, // should we fetch the Agenda du libre feed ?
2022-01-10 11:48:28 +01:00
askOsmCal: false,
2022-01-10 11:06:31 +01:00
runAddQueriesToMobilizonBDD: false,
2021-01-05 11:17:54 +01:00
debug: false,
2022-01-13 15:27:44 +01:00
organizerActorId: 4, // ID of the user who imports events in the mobilizon instance. 3 is the first admin user created, usually.
2022-01-10 12:17:34 +01:00
runAddQueriesToMobilizonAPI: true,
2022-01-10 12:48:37 +01:00
enableFetch: true, // enable persisting of new events via API
2022-01-13 14:30:45 +01:00
// enableFetch: false,
2022-01-10 12:48:37 +01:00
dev_mode: true, // dev mode uses localhost instance of mobilizon running on port 4000
limit_persistence_of_new_events:true,
2022-01-13 14:52:27 +01:00
max_new_events_in_scrapping: 400,
2022-01-13 15:27:44 +01:00
max_new_events: 60,
bearer_token: "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJtb2JpbGl6b24iLCJleHAiOjE2NDIwODQxMTYsImlhdCI6MTY0MjA4MzIxNiwiaXNzIjoibW9iaWxpem9uIiwianRpIjoiOWRkN2Q5NDUtOWNlMC00Mzk4LTgxOTEtMDgxODk4NWYxZTM4IiwibmJmIjoxNjQyMDgzMjE1LCJzdWIiOiJVc2VyOjEiLCJ0eXAiOiJhY2Nlc3MifQ.PXFYQGUID1VM9cc_C_gNK78qhCIco217B9XN9IAUwHc4sx-FX9y_yrryuAfNwCLXYXfafbVBNMZlMNZ5LnwMcg",
2022-01-10 16:13:18 +01:00
ccpl: "https://www.cc-paysdelimours.fr/agenda"
2022-01-10 12:17:34 +01:00
2022-01-10 11:06:31 +01:00
2021-01-03 20:32:27 +01:00
};
2021-01-05 11:17:54 +01:00
export default parserConfig;