-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into replace-v-html
- Loading branch information
Showing
29 changed files
with
445 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
import type { ExpressionEvaluatorType, LogLevel, WorkflowSettings } from 'n8n-workflow'; | ||
|
||
export interface IVersionNotificationSettings { | ||
enabled: boolean; | ||
endpoint: string; | ||
infoUrl: string; | ||
} | ||
|
||
export interface ITelemetryClientConfig { | ||
url: string; | ||
key: string; | ||
} | ||
|
||
export interface ITelemetrySettings { | ||
enabled: boolean; | ||
config?: ITelemetryClientConfig; | ||
} | ||
|
||
export type AuthenticationMethod = 'email' | 'ldap' | 'saml'; | ||
|
||
export interface IUserManagementSettings { | ||
quota: number; | ||
showSetupOnFirstLoad?: boolean; | ||
smtpSetup: boolean; | ||
authenticationMethod: AuthenticationMethod; | ||
} | ||
|
||
export interface FrontendSettings { | ||
isDocker?: boolean; | ||
databaseType: 'sqlite' | 'mariadb' | 'mysqldb' | 'postgresdb'; | ||
endpointForm: string; | ||
endpointFormTest: string; | ||
endpointFormWaiting: string; | ||
endpointWebhook: string; | ||
endpointWebhookTest: string; | ||
saveDataErrorExecution: WorkflowSettings.SaveDataExecution; | ||
saveDataSuccessExecution: WorkflowSettings.SaveDataExecution; | ||
saveManualExecutions: boolean; | ||
saveExecutionProgress: boolean; | ||
executionTimeout: number; | ||
maxExecutionTimeout: number; | ||
workflowCallerPolicyDefaultOption: WorkflowSettings.CallerPolicy; | ||
oauthCallbackUrls: { | ||
oauth1: string; | ||
oauth2: string; | ||
}; | ||
timezone: string; | ||
urlBaseWebhook: string; | ||
urlBaseEditor: string; | ||
versionCli: string; | ||
nodeJsVersion: string; | ||
concurrency: number; | ||
authCookie: { | ||
secure: boolean; | ||
}; | ||
binaryDataMode: 'default' | 'filesystem' | 's3'; | ||
releaseChannel: 'stable' | 'beta' | 'nightly' | 'dev'; | ||
n8nMetadata?: { | ||
userId?: string; | ||
[key: string]: string | number | undefined; | ||
}; | ||
versionNotifications: IVersionNotificationSettings; | ||
instanceId: string; | ||
telemetry: ITelemetrySettings; | ||
posthog: { | ||
enabled: boolean; | ||
apiHost: string; | ||
apiKey: string; | ||
autocapture: boolean; | ||
disableSessionRecording: boolean; | ||
debug: boolean; | ||
}; | ||
personalizationSurveyEnabled: boolean; | ||
defaultLocale: string; | ||
userManagement: IUserManagementSettings; | ||
sso: { | ||
saml: { | ||
loginLabel: string; | ||
loginEnabled: boolean; | ||
}; | ||
ldap: { | ||
loginLabel: string; | ||
loginEnabled: boolean; | ||
}; | ||
}; | ||
publicApi: { | ||
enabled: boolean; | ||
latestVersion: number; | ||
path: string; | ||
swaggerUi: { | ||
enabled: boolean; | ||
}; | ||
}; | ||
workflowTagsDisabled: boolean; | ||
logLevel: LogLevel; | ||
hiringBannerEnabled: boolean; | ||
previewMode: boolean; | ||
templates: { | ||
enabled: boolean; | ||
host: string; | ||
}; | ||
missingPackages?: boolean; | ||
executionMode: 'regular' | 'queue'; | ||
pushBackend: 'sse' | 'websocket'; | ||
communityNodesEnabled: boolean; | ||
aiAssistant: { | ||
enabled: boolean; | ||
}; | ||
deployment: { | ||
type: string; | ||
}; | ||
isNpmAvailable: boolean; | ||
allowedModules: { | ||
builtIn?: string[]; | ||
external?: string[]; | ||
}; | ||
enterprise: { | ||
sharing: boolean; | ||
ldap: boolean; | ||
saml: boolean; | ||
logStreaming: boolean; | ||
advancedExecutionFilters: boolean; | ||
variables: boolean; | ||
sourceControl: boolean; | ||
auditLogs: boolean; | ||
externalSecrets: boolean; | ||
showNonProdBanner: boolean; | ||
debugInEditor: boolean; | ||
binaryDataS3: boolean; | ||
workflowHistory: boolean; | ||
workerView: boolean; | ||
advancedPermissions: boolean; | ||
projects: { | ||
team: { | ||
limit: number; | ||
}; | ||
}; | ||
}; | ||
hideUsagePage: boolean; | ||
license: { | ||
planName?: string; | ||
consumerId: string; | ||
environment: 'development' | 'production' | 'staging'; | ||
}; | ||
variables: { | ||
limit: number; | ||
}; | ||
expressions: { | ||
evaluator: ExpressionEvaluatorType; | ||
}; | ||
mfa: { | ||
enabled: boolean; | ||
}; | ||
banners: { | ||
dismissed: string[]; | ||
}; | ||
ai: { | ||
enabled: boolean; | ||
}; | ||
workflowHistory: { | ||
pruneTime: number; | ||
licensePruneTime: number; | ||
}; | ||
pruning: { | ||
isEnabled: boolean; | ||
maxAge: number; | ||
maxCount: number; | ||
}; | ||
security: { | ||
blockFileAccessToN8nFiles: boolean; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,18 @@ else | |
sudo chown -R "$CURRENT_USER":"$CURRENT_USER" /n8n | ||
fi | ||
|
||
### Remove unneeded dependencies | ||
# TTY | ||
sudo systemctl disable [email protected] | ||
sudo systemctl disable [email protected] | ||
# Snap | ||
sudo systemctl disable snapd.service | ||
sudo apt remove snapd | ||
# Unattended upgrades | ||
sudo systemctl disable unattended-upgrades.service | ||
# Cron | ||
sudo systemctl disable cron.service | ||
|
||
# Include nodejs v20 repository | ||
curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh | ||
sudo -E bash nodesource_setup.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Install fio | ||
sudo apt-get -y install fio > /dev/null | ||
|
||
# Run the disk benchmark | ||
fio --name=rand_rw --ioengine=libaio --rw=randrw --rwmixread=70 --bs=4k --numjobs=4 --size=1G --runtime=30 --directory=/n8n --group_reporting | ||
|
||
# Remove files | ||
sudo rm /n8n/rand_rw.* | ||
|
||
# Uninstall fio | ||
sudo apt-get -y remove fio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.