mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
schema: config: make floodServerProxy and ssl properties optional
This commit is contained in:
@@ -31,7 +31,7 @@ const normalizePort = (val: string | number): string | number => {
|
||||
const startWebServer = () => {
|
||||
const port = normalizePort(config.floodServerPort);
|
||||
const host = config.floodServerHost;
|
||||
const useSSL = config.ssl;
|
||||
const useSSL = config.ssl ?? false;
|
||||
|
||||
app.set('port', port);
|
||||
app.set('host', host);
|
||||
|
||||
@@ -76,7 +76,7 @@ export const configSchema = object({
|
||||
// CLI argument: --proxy
|
||||
// Used for development only. Not used in production.
|
||||
// See the "Local Development" section of README.md for detail.
|
||||
floodServerProxy: string().url(),
|
||||
floodServerProxy: string().url().optional(),
|
||||
|
||||
// CLI argument: --maxhistorystates
|
||||
// Flood keeps a history of torrent download and upload speeds.
|
||||
@@ -107,7 +107,7 @@ export const configSchema = object({
|
||||
|
||||
// CLI argument: --ssl
|
||||
// Configuration for SSL, if using SSL with the Flood service directly. [default: false]
|
||||
ssl: boolean(),
|
||||
ssl: boolean().optional(),
|
||||
|
||||
// CLI argument: --sslkey
|
||||
// Path to the SSL private key. [default: '<rundir>/key.pem']
|
||||
|
||||
Reference in New Issue
Block a user