Commit 97330fbc authored by Lodewijk Loos's avatar Lodewijk Loos
Browse files

added option user and pass

parent ec28c1e7
...@@ -31,6 +31,12 @@ module.exports = { ...@@ -31,6 +31,12 @@ module.exports = {
options: { options: {
baseUrl: process.env.CMS_URL || `https://openschoolingnavigator.eu/`, baseUrl: process.env.CMS_URL || `https://openschoolingnavigator.eu/`,
skipFileDownloads: true, skipFileDownloads: true,
...(process.env.BASIC_AUTH_USERNAME && process.env.BASIC_AUTH_PASSWORD) && {
basicAuth: {
username: process.env.BASIC_AUTH_USERNAME,
password: process.env.BASIC_AUTH_PASSWORD
}
} //if user creds in env, add basic auth config for fetching unpublished content
}, },
}, },
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment