update env for prod

This commit is contained in:
Tykayn 2021-02-12 14:43:39 +01:00 committed by tykayn
parent 7b5cf59b99
commit 3c3dddafa5
2 changed files with 20 additions and 5 deletions

View File

@ -2,17 +2,28 @@ const backendApiUrlsInDev = {
local: '/api/v1', local: '/api/v1',
remote: 'https://framadate-api.cipherbliss.com/api/v1', remote: 'https://framadate-api.cipherbliss.com/api/v1',
}; };
const apiV1 = {
baseHref: 'http://localhost:8000/api/v1',
api_new_poll: '/poll/',
api_get_poll: '/poll/{id}',
'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}',
'app.swagger': '/api/doc.json',
};
export const environment = { export const environment = {
production: true, production: true,
appTitle: 'FramaDate', appTitle: 'FramaDate Funky',
appVersion: '2.0.0', appVersion: '2.1.0',
appLogo: '/assets/img/logo.png', appLogo: 'assets/img/logo.png',
api: { api: {
versionToUse: 'apiV1',
version: {
apiV1,
},
baseHref: backendApiUrlsInDev.remote, baseHref: backendApiUrlsInDev.remote,
endpoints: { endpoints: {
polls: { polls: {
name: '/polls', name: '/poll',
choices: { choices: {
name: '/choices', name: '/choices',
}, },
@ -39,8 +50,12 @@ export const environment = {
}, },
poll: { poll: {
defaultConfig: { defaultConfig: {
maxCountOfAnswers: 150,
expiresDaysDelay: 60, expiresDaysDelay: 60,
expiracyAfterLastModificationInDays: 180, expiracyAfterLastModificationInDays: 180,
whoCanChangeAnswers: 'everybody',
visibility: 'link_only',
voteChoices: 'only_yes',
}, },
}, },
localStorage: { localStorage: {

View File

@ -17,7 +17,7 @@ const apiV1 = {
export const environment = { export const environment = {
production: false, production: false,
appTitle: 'FramaDate Funky', appTitle: 'FramaDate Funky',
appVersion: '2.0.0', appVersion: '2.1.0',
appLogo: 'assets/img/logo.png', appLogo: 'assets/img/logo.png',
api: { api: {
versionToUse: 'apiV1', versionToUse: 'apiV1',