2019-06-30 00:33:21 +08:00
|
|
|
const pandocPath = process.env.PANDOC_PATH || 'pandoc';
|
|
|
|
const wkhtmltopdfPath = process.env.WKHTMLTOPDF_PATH || 'wkhtmltopdf';
|
|
|
|
const paypalReceiverEmail = process.env.PAYPAL_RECEIVER_EMAIL;
|
|
|
|
|
|
|
|
const dropboxAppKey = process.env.DROPBOX_APP_KEY;
|
|
|
|
const dropboxAppKeyFull = process.env.DROPBOX_APP_KEY_FULL;
|
|
|
|
const githubClientId = process.env.GITHUB_CLIENT_ID;
|
|
|
|
const githubClientSecret = process.env.GITHUB_CLIENT_SECRET;
|
2022-05-23 11:29:54 +08:00
|
|
|
const giteeClientId = process.env.GITEE_CLIENT_ID;
|
|
|
|
const giteeClientSecret = process.env.GITEE_CLIENT_SECRET;
|
2019-06-30 00:33:21 +08:00
|
|
|
const googleClientId = process.env.GOOGLE_CLIENT_ID;
|
|
|
|
const googleApiKey = process.env.GOOGLE_API_KEY;
|
|
|
|
const wordpressClientId = process.env.WORDPRESS_CLIENT_ID;
|
2022-10-02 00:20:01 +08:00
|
|
|
const giteaClientId = process.env.GITEA_CLIENT_ID;
|
|
|
|
const giteaClientSecret = process.env.GITEA_CLIENT_SECRET;
|
|
|
|
const giteaUrl = process.env.GITEA_URL;
|
2019-06-30 00:33:21 +08:00
|
|
|
|
|
|
|
exports.values = {
|
|
|
|
pandocPath,
|
|
|
|
wkhtmltopdfPath,
|
|
|
|
paypalReceiverEmail,
|
|
|
|
dropboxAppKey,
|
|
|
|
dropboxAppKeyFull,
|
|
|
|
githubClientId,
|
|
|
|
githubClientSecret,
|
2022-05-23 11:29:54 +08:00
|
|
|
giteeClientId,
|
|
|
|
giteeClientSecret,
|
2019-06-30 00:33:21 +08:00
|
|
|
googleClientId,
|
|
|
|
googleApiKey,
|
|
|
|
wordpressClientId,
|
2022-10-02 00:20:01 +08:00
|
|
|
giteaClientId,
|
|
|
|
giteaClientSecret,
|
|
|
|
giteaUrl,
|
2019-06-30 00:33:21 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
exports.publicValues = {
|
|
|
|
dropboxAppKey,
|
|
|
|
dropboxAppKeyFull,
|
|
|
|
githubClientId,
|
|
|
|
googleClientId,
|
|
|
|
googleApiKey,
|
|
|
|
wordpressClientId,
|
2019-06-30 20:28:37 +08:00
|
|
|
allowSponsorship: !!paypalReceiverEmail,
|
2022-10-02 00:20:01 +08:00
|
|
|
giteaClientId,
|
|
|
|
giteaUrl,
|
2019-06-30 00:33:21 +08:00
|
|
|
};
|