Quantcast
Channel: Tips & Tricks - n8n Community
Viewing all articles
Browse latest Browse all 208

How to automate onboarding on a self hosted Postgres

$
0
0

I recently started hosting my own n8n instance using this helm charts via k8s: GitHub - 8gears/n8n-helm-chart: A Kubernetes Helm chart for n8n a Workflow Automation Tool. Easily automate tasks across different services.

As we are all automation fans here, this is a nice hack on how to automate the automated installation a bit more.

How to bypass the user creation / nagg screen when installing?

This can be done by a simple sql statement (I am using postgres)

CREATE EXTENSION IF NOT EXISTS pgcrypto;

INSERT INTO public.settings
VALUES('userManagement.isInstanceOwnerSetUp','true', 't')
ON CONFLICT(key) DO
UPDATE SET (key, value, "loadOnStartup") = ('userManagement.isInstanceOwnerSetUp', true, 't');

UPDATE public."user"
       SET ( email, "firstName", "lastName", "password", "personalizationAnswers") =
       ( 
         'admin@example.com', 'admin', 'admin',	crypt('MySecret#Thing', gen_salt('bf', 8)),
      	 '{"companyType":"saas","role":"business-owner","automationBeneficiary":"myself","companySize":"<20","reportedSource":"google","version":"v4","personalization_survey_submitted_at":"2023-09-30T08:09:51.119Z","personalization_survey_n8n_version":"1.9.0"}'
      	)
WHERE (email IS NULL OR email = 'admin@example.com') AND "globalRoleId" = 1
`

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 208

Trending Articles