Skip to content

Commit

Permalink
fix(environment): Make SSL variables optional (twentyhq#8843)
Browse files Browse the repository at this point in the history
Previously, SSL_KEY_PATH and SSL_CERT_PATH were required if the
SERVER_URL started with 'https'. This change makes these variables
optional, allowing greater flexibility in dealing with SSL
configurations. This update helps in scenarios where SSL paths are
managed differently or not needed.
  • Loading branch information
AMoreaux authored and mdrazak2001 committed Dec 4, 2024
1 parent 2df07ef commit dd14675
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,11 @@ export class EnvironmentVariables {

// SSL
@IsString()
@ValidateIf((env) => env.SERVER_URL.startsWith('https'))
@IsOptional()
SSL_KEY_PATH: string;

@IsString()
@ValidateIf((env) => env.SERVER_URL.startsWith('https'))
@IsOptional()
SSL_CERT_PATH: string;
}

Expand Down

0 comments on commit dd14675

Please sign in to comment.