From 3116b3f110efd8d4cd165e58e6ba17c6a4462dfc Mon Sep 17 00:00:00 2001 From: NitinPSingh Date: Mon, 7 Oct 2024 17:31:17 +0530 Subject: [PATCH 1/3] update self-hosting doc , added structure for auth callback --- .../src/content/developers/self-hosting/self-hosting-var.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx b/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx index 6eb28b045504..389f1fe85792 100644 --- a/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx +++ b/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx @@ -76,12 +76,12 @@ yarn command:prod cron:calendar:calendar-event-list-fetch ['AUTH_GOOGLE_ENABLED', 'false', 'Enable Google SSO login'], ['AUTH_GOOGLE_CLIENT_ID', '', 'Google client ID'], ['AUTH_GOOGLE_CLIENT_SECRET', '', 'Google client secret'], - ['AUTH_GOOGLE_CALLBACK_URL', '', 'Google auth callback'], + ['AUTH_GOOGLE_CALLBACK_URL', 'https://[domain]/auth/google/redirect', 'Google auth callback URL'], ['AUTH_MICROSOFT_ENABLED', 'false', 'Enable Microsoft SSO login'], ['AUTH_MICROSOFT_CLIENT_ID', '', 'Microsoft client ID'], ['AUTH_MICROSOFT_TENANT_ID', '', 'Microsoft tenant ID'], ['AUTH_MICROSOFT_CLIENT_SECRET', '', 'Microsoft client secret'], - ['AUTH_MICROSOFT_CALLBACK_URL', '', 'Microsoft auth callback'], + ['AUTH_MICROSOFT_CALLBACK_URL', 'https://[domain]/auth/microsoft/redirect', 'Microsoft auth callback URL'], ['FRONT_AUTH_CALLBACK_URL', 'http://localhost:3001/verify ', 'Callback used for Login page'], ['IS_SIGN_UP_DISABLED', 'false', 'Disable sign-up'], ['PASSWORD_RESET_TOKEN_EXPIRES_IN', '5m', 'Password reset token expiration time'], From 5e5ca9eaebdc3ed7a18a1e9226d5336c3fcb9ec3 Mon Sep 17 00:00:00 2001 From: NitinPSingh Date: Tue, 8 Oct 2024 18:12:56 +0530 Subject: [PATCH 2/3] fix #7486 trigger shouldDirty on adding new options --- .../select/components/SettingsDataModelFieldSelectForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/select/components/SettingsDataModelFieldSelectForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/select/components/SettingsDataModelFieldSelectForm.tsx index 128aab7ab6fd..f1fdc6425f57 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/select/components/SettingsDataModelFieldSelectForm.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/select/components/SettingsDataModelFieldSelectForm.tsx @@ -181,13 +181,13 @@ export const SettingsDataModelFieldSelectForm = ({ const handleAddOption = () => { const newOptions = getOptionsWithNewOption(); - setFormValue('options', newOptions); + setFormValue('options', newOptions, { shouldDirty: true }); }; const handleInputEnter = () => { const newOptions = getOptionsWithNewOption(); - setFormValue('options', newOptions); + setFormValue('options', newOptions, { shouldDirty: true }); }; return ( From 21bfed9e383ef46611a53dd6d79b3c3d81d70eaa Mon Sep 17 00:00:00 2001 From: NitinPSingh <71833171+NitinPSingh@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:23:53 +0530 Subject: [PATCH 3/3] removed --- .../self-hosting/self-hosting-var.mdx | 240 ------------------ 1 file changed, 240 deletions(-) delete mode 100644 packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx diff --git a/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx b/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx deleted file mode 100644 index 389f1fe85792..000000000000 --- a/packages/twenty-website/src/content/developers/self-hosting/self-hosting-var.mdx +++ /dev/null @@ -1,240 +0,0 @@ ---- -title: Environment Variables -icon: TbServer -image: /images/user-guide/table-views/table.png ---- - -import OptionTable from '@site/src/theme/OptionTable' - -# Setup Messaging & Calendar sync - -Twenty offers integrations with Gmail and Google Calendar. To enable these features, you need to connect to register the following recurring jobs: -``` -# from your worker container -yarn command:prod cron:messaging:messages-import -yarn command:prod cron:messaging:message-list-fetch -yarn command:prod cron:calendar:calendar-event-list-fetch -``` - -# Setup Environment Variables - -## Frontend - - - - -## Backend - -### Config - - - -### Security - - -### Tokens - -', 'Secret used for the access tokens'], - ['ACCESS_TOKEN_EXPIRES_IN', '30m', 'Access token expiration time'], - ['LOGIN_TOKEN_SECRET', '', 'Secret used for the login tokens'], - ['LOGIN_TOKEN_EXPIRES_IN', '15m', 'Login token expiration time'], - ['REFRESH_TOKEN_SECRET', '', 'Secret used for the refresh tokens'], - ['REFRESH_TOKEN_EXPIRES_IN', '90d', 'Refresh token expiration time'], - ['REFRESH_TOKEN_COOL_DOWN', '1m', 'Refresh token cooldown'], - ['FILE_TOKEN_SECRET', '', 'Secret used for the file tokens'], - ['FILE_TOKEN_EXPIRES_IN', '1d', 'File token expiration time'], - ['API_TOKEN_EXPIRES_IN', '1000y', 'Api token expiration time'], - ]}> - -### Auth - - - -### Email - - - -#### Email SMTP Server configuration examples - - - - - - You will need to provision an [App Password](https://support.google.com/accounts/answer/185833). - - EMAIL_SMTP_HOST=smtp.gmail.com - - EMAIL_SMTP_PORT=465 - - EMAIL_SMTP_USER=gmail_email_address - - EMAIL_SMTP_PASSWORD='gmail_app_password' - - - - - - Keep in mind that if you have 2FA enabled, you will need to provision an [App Password](https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9). - - EMAIL_SMTP_HOST=smtp.office365.com - - EMAIL_SMTP_PORT=587 - - EMAIL_SMTP_USER=office365_email_address - - EMAIL_SMTP_PASSWORD='office365_password' - - - - - - **smtp4dev** is a fake SMTP email server for development and testing. - - Run the smtp4dev image: `docker run --rm -it -p 8090:80 -p 2525:25 rnwood/smtp4dev` - - Access the smtp4dev ui here: [http://localhost:8090](http://localhost:8090) - - Set the following env variables: - - EMAIL_SMTP_HOST=localhost - - EMAIL_SMTP_PORT=2525 - - - - - -### Storage - - - -### Custom Code Execution - - - -### Message Queue - - - -### Logging - - - - -### Data enrichment and AI - - - -### Serverless functions -This feature is WIP and is not yet useful for most users. - - - - - -### Support Chat - -', 'Suport chat key'], - ['SUPPORT_FRONT_CHAT_ID', '', 'Support chat id'], - ]}> - -### Telemetry - - - -### Debug / Development - - - -### Workspace Cleaning - - - -### Captcha - - - -