mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 03:51:36 +03:00
fix(environment): Make SSL variables optional (#8843)
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.
This commit is contained in:
parent
d0ff1ffd5f
commit
7b2d9894f3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user