mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Allow logs format to be configured as console or JSON
This commit is contained in:
@@ -91,6 +91,7 @@ enum EnvVars: string
|
||||
case CORS_ALLOW_CREDENTIALS = 'CORS_ALLOW_CREDENTIALS';
|
||||
case CORS_MAX_AGE = 'CORS_MAX_AGE';
|
||||
case TRUSTED_PROXIES = 'TRUSTED_PROXIES';
|
||||
case LOGS_FORMAT = 'LOGS_FORMAT';
|
||||
|
||||
/** @deprecated Use REDIRECT_EXTRA_PATH */
|
||||
case REDIRECT_APPEND_EXTRA_PATH = 'REDIRECT_APPEND_EXTRA_PATH';
|
||||
@@ -196,6 +197,8 @@ enum EnvVars: string
|
||||
self::CORS_ALLOW_CREDENTIALS => false,
|
||||
self::CORS_MAX_AGE => 3600,
|
||||
|
||||
self::LOGS_FORMAT => 'console',
|
||||
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user