Skip to content

Commit

Permalink
🐛 Fix .env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Sep 3, 2024
1 parent 5aa5b58 commit db33813
Show file tree
Hide file tree
Showing 10 changed files with 162 additions and 36 deletions.
43 changes: 39 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ENCRYPT_CRYPTO_SECRET_KEY="0123456789abcdef0123456789abcdef"
SENTRY_DSN=
SENTRY_ENABLED=FALSE

POSTHOG_HOST=
POSTHOG_KEY=
POSTHOG_HOST=<ph_instance_address>
POSTHOG_KEY=<ph_instance_key>
PH_TELEMETRY= #FALSE or TRUE

# ================================================
Expand Down Expand Up @@ -76,6 +76,9 @@ ATTIO_CRM_CLOUD_CLIENT_SECRET=
# Close
CLOSE_CRM_CLOUD_CLIENT_ID=
CLOSE_CRM_CLOUD_CLIENT_SECRET=
# Microsft Dynamics Sales
MICROSOFTDYNAMICSSALES_CRM_CLOUD_CLIENT_ID=
MICROSOFTDYNAMICSSALES_CRM_CLOUD_CLIENT_SECRET=

# ================================================
# Ticketing
Expand Down Expand Up @@ -108,15 +111,47 @@ BOX_FILESTORAGE_CLOUD_CLIENT_ID=
BOX_FILESTORAGE_CLOUD_CLIENT_SECRET=


# ================================================
# HRIS
# ================================================
# Deel
DEEL_HRIS_CLOUD_CLIENT_ID=
DEEL_HRIS_CLOUD_CLIENT_SECRET=
# Sage
SAGE_HRIS_CLOUD_CLIENT_ID=
SAGE_HRIS_CLOUD_CLIENT_SECRET=
# Gusto
GUSTO_HRIS_CLOUD_CLIENT_ID=
GUSTO_HRIS_CLOUD_CLIENT_SECRET=


# ================================================
# ECOMMERCE
# ================================================
# Shopify
SHOPIFY_ECOMMERCE_CLOUD_CLIENT_ID=
SHOPIFY_ECOMMERCE_CLOUD_CLIENT_SECRET=
# Webflow
WEBFLOW_ECOMMERCE_CLOUD_CLIENT_ID=
WEBFLOW_ECOMMERCE_CLOUD_CLIENT_SECRET=
# Amazon
AMAZON_ECOMMERCE_CLOUD_CLIENT_ID=
AMAZON_ECOMMERCE_CLOUD_CLIENT_SECRET=
# Woo Commerce
WOOCOMMERCE_ECOMMERCE_CLOUD_CLIENT_ID=
WOOCOMMERCE_ECOMMERCE_CLOUD_CLIENT_SECRET=
# Squarespace
SQUARESPACE_ECOMMERCE_CLOUD_CLIENT_ID=
SQUARESPACE_ECOMMERCE_CLOUD_CLIENT_SECRET=



# ================================================
# Webapp settings
# Must be set in the perspective of the end user browser

NEXT_PUBLIC_BACKEND_DOMAIN=http://localhost:3000 # https://api.panora.dev/
NEXT_PUBLIC_MAGIC_LINK_DOMAIN=http://localhost:81
NEXT_PUBLIC_POSTHOG_KEY=<ph_project_api_key>
NEXT_PUBLIC_POSTHOG_HOST=<ph_instance_address>
NEXT_PUBLIC_WEBAPP_DOMAIN="http://localhost"
NEXT_PUBLIC_DISTRIBUTION="selfhost" # selfhost or managed

82 changes: 82 additions & 0 deletions .magicodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@

# This file is automatically generated by MagiCode
# You can control which files and folders are ignored, or read by MagiCode

# ========================
# Ignore specific folders:
# By default, the below folder patterns contain build artifacts or temporary files
# ========================

**/node_modules
**/__pycache__
**/bin
**/obj
**/dist
**/out
**/build
**/target
**/env
**/venv
**/temp
**/tmp
**/flask_session
**/.*
.*

# ========================
# Ignore specific files
# ========================

.gitignore
.magicodeignore
**/*.lock
**/*.log


###########################################################
### DO NOT MODIFY THIS SEPARATOR ###
###########################################################

# ========================
# Below, you can specify the file extensions that MagiCode should read
# A default list of common file extensions is provided
# Files that do not have these extensions will be ignored
# ========================

.js
.jsx
.ts
.tsx
.py
.java
.c
.cs
.cpp
.h
.hpp
.go
.rb
.php
.sh
.json
.md
.txt
.csv
.html
.css
.sql
.xml
.yaml
.yml
.toml
.ini
.cfg
.conf
.bat
.kt
.swift
.m
.r
.hbs
.ejs

2 changes: 1 addition & 1 deletion apps/magic-link/src/lib/ProviderModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface IBasicAuthFormData {
}

const domainFormats: { [key: string]: string } = {
microsoftdynamicssales: 'YOURORGNAME.api.crm3.dynamics.com',
microsoftdynamicssales: '{YOUR_DOMAIN}.api.crm3.dynamics.com',
bigcommerce: 'If your api domain is https://api.bigcommerce.com/stores/eubckcvkzg/v3 then store_hash is eubckcvkzg',
};

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ services:
args:
VITE_BACKEND_DOMAIN: ${NEXT_PUBLIC_BACKEND_DOMAIN}
environment:
NEXT_PUBLIC_POSTHOG_KEY: ${POSTHOG_KEY}
NEXT_PUBLIC_POSTHOG_HOST: ${POSTHOG_HOST}
NEXT_PUBLIC_DISTRIBUTION: ${DISTRIBUTION}
NEXT_PUBLIC_BACKEND_DOMAIN: ${NEXT_PUBLIC_BACKEND_DOMAIN}
NEXT_PUBLIC_MAGIC_LINK_DOMAIN: ${NEXT_PUBLIC_MAGIC_LINK_DOMAIN}
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ services:
dockerfile: ./apps/webapp/Dockerfile
context: ./
args:
NEXT_PUBLIC_POSTHOG_KEY: "phc_WhWJfNPOHAuWVdyTacGxrPa9JW54scnofA9KVEjFcFw"
NEXT_PUBLIC_POSTHOG_HOST: "https://us.i.posthog.com"
NEXT_PUBLIC_DISTRIBUTION: ${DISTRIBUTION}
NEXT_PUBLIC_BACKEND_DOMAIN: ${NEXT_PUBLIC_BACKEND_DOMAIN}
NEXT_PUBLIC_MAGIC_LINK_DOMAIN: ${NEXT_PUBLIC_MAGIC_LINK_DOMAIN}
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ services:
webapp-next:
image: panora.docker.scarf.sh/panoradotdev/frontend-webapp:selfhosted
environment:
NEXT_PUBLIC_POSTHOG_KEY: "phc_WhWJfNPOHAuWVdyTacGxrPa9JW54scnofA9KVEjFcFw"
NEXT_PUBLIC_POSTHOG_HOST: "https://us.i.posthog.com"
NEXT_PUBLIC_DISTRIBUTION: "selfhost"
NEXT_PUBLIC_BACKEND_DOMAIN: ${NEXT_PUBLIC_BACKEND_DOMAIN}
NEXT_PUBLIC_MAGIC_LINK_DOMAIN: ${NEXT_PUBLIC_MAGIC_LINK_DOMAIN}
Expand Down
49 changes: 26 additions & 23 deletions packages/api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -1321,29 +1321,32 @@ model connections {
}

model connector_sets {
id_connector_set String @id(map: "pk_project_connector") @db.Uuid
crm_hubspot Boolean?
crm_zoho Boolean?
crm_attio Boolean?
crm_pipedrive Boolean?
tcg_zendesk Boolean?
tcg_jira Boolean?
tcg_gorgias Boolean?
tcg_gitlab Boolean?
tcg_front Boolean?
crm_zendesk Boolean?
crm_close Boolean?
fs_box Boolean?
tcg_github Boolean?
hris_gusto Boolean?
hris_deel Boolean?
hris_sage Boolean?
ecom_woocommerce Boolean?
ecom_shopify Boolean?
ecom_amazon Boolean?
ecom_squarespace Boolean?
ats_ashby Boolean?
projects projects[]
id_connector_set String @id(map: "pk_project_connector") @db.Uuid
crm_hubspot Boolean?
crm_zoho Boolean?
crm_attio Boolean?
crm_pipedrive Boolean?
tcg_zendesk Boolean?
tcg_jira Boolean?
tcg_gorgias Boolean?
tcg_gitlab Boolean?
tcg_front Boolean?
crm_zendesk Boolean?
crm_close Boolean?
fs_box Boolean?
tcg_github Boolean?
hris_gusto Boolean?
hris_deel Boolean?
hris_sage Boolean?
ecom_woocommerce Boolean?
ecom_shopify Boolean?
ecom_amazon Boolean?
ecom_squarespace Boolean?
tcg_linear Boolean?
ats_ashby Boolean?
ecom_webflow Boolean?
crm_microsoftdynamicssales Boolean?
projects projects[]
}

/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
Expand Down
2 changes: 1 addition & 1 deletion packages/api/scripts/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ CREATE TABLE connector_sets
tcg_front boolean NULL,
crm_zendesk boolean NULL,
crm_close boolean NULL,
fs_box boolean NULL,
fs_box boolean NULL,
tcg_github boolean NULL,
hris_gusto boolean NULL,
hris_deel boolean NULL,
Expand Down
10 changes: 5 additions & 5 deletions packages/api/scripts/seed.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
INSERT INTO users (id_user, identification_strategy, email, password_hash, first_name, last_name) VALUES
('0ce39030-2901-4c56-8db0-5e326182ec6b', 'b2c','[email protected]', '$2b$10$Y7Q8TWGyGuc5ecdIASbBsuXMo3q/Rs3/cnY.mLZP4tUgfGUOCUBlG', 'local', 'Panora');

INSERT INTO connector_sets (id_connector_set, crm_hubspot, crm_zoho, crm_pipedrive, crm_attio, crm_zendesk, crm_close, tcg_zendesk, tcg_gorgias, tcg_front, tcg_jira, tcg_gitlab, fs_box, tcg_github, hris_deel, hris_sage, ats_ashby, crm_microsoftdynamicssales, ecom_webflow, tcg_linear) VALUES
('1709da40-17f7-4d3a-93a0-96dc5da6ddd7', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE),
('852dfff8-ab63-4530-ae49-e4b2924407f8', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE),
('aed0f856-f802-4a79-8640-66d441581a99', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE);
INSERT INTO connector_sets (id_connector_set, crm_hubspot, crm_zoho, crm_pipedrive, crm_attio, crm_zendesk, crm_close, tcg_zendesk, tcg_gorgias, tcg_front, tcg_jira, tcg_gitlab, fs_box, tcg_github, hris_deel, hris_sage, ats_ashby, crm_microsoftdynamicssales, ecom_webflow, tcg_linear, ecom_shopify, ecom_woocommerce, ecom_amazon, ecom_squarespace, hris_gusto) VALUES
('1709da40-17f7-4d3a-93a0-96dc5da6ddd7', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE),
('852dfff8-ab63-4530-ae49-e4b2924407f8', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE),
('aed0f856-f802-4a79-8640-66d441581a99', TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE);

INSERT INTO projects (id_project, name, sync_mode, id_user, id_connector_set) VALUES
('1e468c15-aa57-4448-aa2b-7fed640d1e3d', 'Project 1', 'pull', '0ce39030-2901-4c56-8db0-5e326182ec6b', '1709da40-17f7-4d3a-93a0-96dc5da6ddd7'),
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/connectors/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const CONNECTORS_METADATA: ProvidersConfig = {
},
logoPath: 'https://play-lh.googleusercontent.com/MC_Aoa7rlMjGtcgAdiLJGeIm3-kpVw7APQmQUrUZtXuoZokiqVOJqR-bTu7idJBD8g',
description: 'Sync & Create contacts, deals, companies, notes, engagements, stages, tasks and users',
active: false,
active: true,
primaryColor: '#516EE2',
options: {
end_user_domain: true
Expand Down Expand Up @@ -458,7 +458,7 @@ export const CONNECTORS_METADATA: ProvidersConfig = {
},
logoPath: 'https://asset.brandfetch.io/iduDa181eM/idYYbqOlKi.png',
description: 'Sync & Create accounts, tickets, comments, attachments, contacts, tags, teams and users',
active: false,
active: true,
authStrategy: {
strategy: AuthStrategy.oauth2
}
Expand Down

0 comments on commit db33813

Please sign in to comment.