rss-feeder-mobilizon/config.ts

33 lines
1.9 KiB
TypeScript

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
dev_url: "http://127.0.0.1:4000/api", // url publique de l'instance mobilizon pour créer les url d'évènements
// database of mobilizon
db_name: "mobilizon_dev",
db_user: "mobilizon",
db_pass: "0eHmz99Rb2WEhPKbwGJuAU-Da04jVV36QjuOOeJDOsK_Q1w7pikqIR04WqHoZLQi",
// other configs
askAgendaDuLibre: true, // should we fetch the Agenda du libre feed ?
askOsmCal: false,
runAddQueriesToMobilizonBDD: false,
debug: false,
organizerActorId: 3, // ID of the user who imports events in the mobilizon instance. 3 is the first admin user created, usually.
runAddQueriesToMobilizonAPI: true,
enableFetch: true, // enable persisting of new events via API
dev_mode: true, // dev mode uses localhost instance of mobilizon running on port 4000
limit_persistence_of_new_events:true,
max_new_events: 1,
bearer_token: "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJtb2JpbGl6b24iLCJleHAiOjE2NDE4MTU0MDMsImlhdCI6MTY0MTgxNDUwMywiaXNzIjoibW9iaWxpem9uIiwianRpIjoiNTU0ZGRlY2YtZDNjMS00NzcwLWJkODAtMTAwMjM3ZjkwYmU2IiwibmJmIjoxNjQxODE0NTAyLCJzdWIiOiJVc2VyOjEiLCJ0eXAiOiJhY2Nlc3MifQ._tFmxJTIBY01vhv9Sj5uADIC_5pP6kx3xdgUgefS36r-lrOZlLeKvD0DpDPh4DM3-lkTonPtZlGRcIyr0I5DpQ",
ccpl: "https://www.cc-paysdelimours.fr/agenda"
};
export default parserConfig;