minor fixes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Sergo 2023-08-13 18:46:56 +03:00
parent 50d07820dc
commit a2d344ceb4
4 changed files with 3 additions and 9 deletions

View File

@ -1,5 +1,6 @@
module.exports = {
clientUrl: process.env.CLIENT_URL,
sessionSecret: process.env.SESSION_SECRET,
oidc: {
gatewayUri: process.env.OIDC_GATEWAY_URI,
clientId: process.env.OIDC_CLIENT_ID,

View File

@ -103,11 +103,6 @@ spec:
secretKeyRef:
name: redis-walias-cache-owner-secrets
key: REDIS_MASTER_URI
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-walias-cache-owner-secrets
key: REDIS_PASSWORD
envFrom:
- secretRef:
name: oidc-client-walias-owner-secrets

View File

@ -45,7 +45,7 @@ if (getEnv() === Env.prod) {
app.use(
session({
store: sessionStore,
secret: randomUUID(),
secret: config.get('sessionSecret') || randomUUID(),
resave: false,
saveUninitialized: false,
cookie: { secure: false },

View File

@ -126,10 +126,8 @@ export class AliasesService<ServiceParams extends AliasesParams = AliasesParams>
sanitizeAliasResponse(alias: WildDuckAddress): AliasApiResponse {
// Hide the id if the alias is not removable
const isRemovable = alias.main || !alias.address.endsWith(config.get('wildDuck.preferredDomain'));
return {
id: isRemovable ? null : alias.id,
id: alias.main ? null : alias.id,
address: alias.address,
tags: alias.tags,
created: alias.created,