Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Review for latest Changes #10

Open
wants to merge 141 commits into
base: main_sync
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
5500a22
Added Routes to App.tsx File
srp-pawar Feb 26, 2024
a5a20d2
Added Navigation Items, to Drawer
srp-pawar Feb 26, 2024
33e526d
Added Custom Paths
srp-pawar Feb 26, 2024
b2582ee
Created DateTimePicker Component
srp-pawar Feb 26, 2024
73ae229
Mutation query for adding Campaigns
srp-pawar Feb 26, 2024
d05d742
added query to fetch Subspecialty details
srp-pawar Feb 26, 2024
c233a23
Campaigns Page Added
srp-pawar Feb 26, 2024
19a211c
Created Audio Template Component
srp-pawar Feb 26, 2024
7c4fb0d
Created Document Template Component
srp-pawar Feb 26, 2024
12ef192
Created Image, Document, Video, Text Template Components
srp-pawar Feb 26, 2024
fb4ce74
deleted templates
sanjana0190 Feb 27, 2024
731e323
updated Preview for Audio Template
sanjana0190 Feb 27, 2024
2341870
updated Document template
sanjana0190 Feb 27, 2024
b9bebb9
updated image template
sanjana0190 Feb 27, 2024
7d955aa
updated preview of video template
sanjana0190 Feb 27, 2024
d000f94
updated checkbox in campaigns
sanjana0190 Feb 29, 2024
6f09657
updated checkbox functionality
sanjana0190 Feb 29, 2024
5b6c00e
added Twilio sms API endpoint
sanjana0190 Mar 1, 2024
5df954d
Multi-Step form Campaign Changes
srp-pawar Mar 5, 2024
2f2ff7a
Merge branch 'feature/template_campaign' into Dev
srp-pawar Mar 6, 2024
c46ecf8
Merge branch 'Dev' into main
sanjana0190 Apr 13, 2024
2296ec4
Merge branch 'main' of https://github.com/synapsenet-arena/lead360 in…
sanjana0190 May 2, 2024
bc86ac7
removed Initial committed Campaign Files
sanjana0190 May 2, 2024
22668cd
Synced Main Branch Changes with Feature/Template
sanjana0190 May 2, 2024
8a713c2
Updated Queries
sanjana0190 May 3, 2024
a195568
Back-end API Controller
sanjana0190 May 3, 2024
f24474c
Updated Button UI
sanjana0190 May 3, 2024
c4beb3f
triggered note drawer on change of opportunity stage
srp-pawar May 4, 2024
da0b00a
Added scroll to leads table
sanjana0190 May 4, 2024
6529c24
updated form ui
sanjana0190 May 6, 2024
6bbd5b9
Disabled Checkbox in forms and updated select all in leads
sanjana0190 May 7, 2024
cff691a
added Dashboard Component
srp-pawar May 7, 2024
bccff85
updated yarn on installing embedded superset dependency package
srp-pawar May 7, 2024
405fed5
updated Campaign Forms
srp-pawar May 7, 2024
b01d543
Added API for Dashboard authentication
sanjana0190 May 8, 2024
1cf93ef
updated superset Dashboard Authentication
srp-pawar May 8, 2024
4819899
added lead count to segments
srp-pawar May 8, 2024
beb27c7
updated Logo and Changed the name of forms ,set dashboard navigation …
srp-pawar May 10, 2024
c912388
updated segment
srp-pawar May 10, 2024
1b3d28b
added Between filter option in segments page
sanjana0190 May 14, 2024
f79b7ab
removed multiple definitions of snackBar and navigate
srp-pawar May 14, 2024
09d4bdb
Merge branch 'main' of https://github.com/synapsenet-arena/lead360
srp-pawar May 15, 2024
2660b52
Squashed commit of the following:
srp-pawar May 15, 2024
413b66d
Merge branch 'main' into fe/template_campaign
srp-pawar May 15, 2024
ad0c995
Added checkbox to remove leads already contacted
sanjana0190 May 15, 2024
b9c83a4
Merge branch 'main' of https://github.com/synapsenet-arena/lead360 in…
sanjana0190 May 17, 2024
bf086dd
Merge branch 'main' into feature/campaign_filter
sanjana0190 May 17, 2024
27c738d
updated totalCount, selectedCount and UnselectedCount in leads
sanjana0190 May 17, 2024
a29adff
Updated the fields in segments page to dynamic fields
sanjana0190 May 20, 2024
bb2d74f
Merge branch 'main' of https://github.com/synapsenet-arena/lead360
srp-pawar May 21, 2024
235fadd
Squashed commit of the following:
srp-pawar May 21, 2024
edec7bd
Added Logo and Made changes to Title name as lead360
srp-pawar May 21, 2024
4ecc81d
Merge branch 'main' into feature/campaign_filter
sanjana0190 May 21, 2024
02322f7
made leads table column dynamic
srp-pawar May 22, 2024
3e88c5d
added Gender option to select
srp-pawar May 30, 2024
a4a63b0
Merge branch 'main' of https://github.com/synapsenet-arena/lead360
srp-pawar May 30, 2024
0ae4a0a
Refactored Segment Code
srp-pawar Jun 5, 2024
e9b4d0f
made changes for docker build
sanjana0190 Jun 6, 2024
241eb1d
added Dockerfile for lead360 and DB created Docker compose file
srp-pawar Jun 7, 2024
c401545
Removed build of twenty-email and database:resetDockerfile
srp-pawar Jun 7, 2024
f095fe5
added database initialization for docker compose
srp-pawar Jun 10, 2024
07d6389
added missing a flag file
srp-pawar Jun 10, 2024
16a7230
Refactored functions in leads page
sanjana0190 Jun 19, 2024
894d6f4
Refactored Campaign page (#8)
srp-pawar Jun 19, 2024
1914f7f
Merge branch 'main' of https://github.com/synapsenet-arena/lead360 in…
sanjana0190 Jun 19, 2024
3d2886a
Squashed commit of the following:
srp-pawar Jun 19, 2024
2ab341d
Squashed commit of the following:
srp-pawar Jun 19, 2024
6700269
Squashed commit of the following:
srp-pawar Jun 19, 2024
cedc8e5
Squashed commit of the following:
srp-pawar Jun 21, 2024
aa97721
Squashed commit of the following:
srp-pawar Jun 21, 2024
9adcbac
Squashed commit of the following:
srp-pawar Jun 21, 2024
8329b5e
Merge branch 'main_sync' into feature/leads_refactor
sanjana0190 Jun 21, 2024
12a7121
Merge branch 'main' into feature/leads_refactor
sanjana0190 Jun 24, 2024
b176435
corrected Segment snackbar and updated workspace invite link
sanjana0190 Jun 24, 2024
6bd6d46
Added Default Select option to Campaign Pages
sanjana0190 Jun 25, 2024
573997f
handled Exceptions in Segments and Campaigns Page
srp-pawar Jun 25, 2024
c23804d
Updated checkbox of campaign page and added error handling for displa…
srp-pawar Jun 26, 2024
ff4c0ff
Merge branch 'main_sync' into feature/leads_refactor
sanjana0190 Jun 28, 2024
dae9669
updated lead360.yaml configurations for deployment
srp-pawar Jul 2, 2024
1d34b07
added tls certificate configuration and domain name
srp-pawar Jul 3, 2024
c5e147e
Added superset and airflow deployment files
sanjana0190 Jul 11, 2024
6a69986
Merge branch 'main_sync' into feature/leads_refactor
sanjana0190 Jul 11, 2024
87b0c68
Updated PageChangeEffect imports
sanjana0190 Jul 11, 2024
7b43822
Create BuildAndPush.yaml
sanjana0190 Jul 16, 2024
d5ee6c2
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
1dec1ab
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
69cd7f5
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
5f12aef
Updated DateTimePicker and removed useRecordChipDataGenerator.ts
sanjana0190 Jul 16, 2024
1ca506e
Merge branch 'feature/leads_refactor' into test-build-push-workflow
sanjana0190 Jul 16, 2024
4296b64
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
f767afc
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
78496e1
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
417ccff
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
a81f7eb
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
1a37265
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
8836621
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
546cd9e
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
8fe9d69
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
0fc34b4
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
22f4cbe
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
34dddd3
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
55baabc
Update BuildAndPush.yaml
sanjana0190 Jul 16, 2024
6aca5ea
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
4f75443
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
80ce625
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
a4ecf39
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
4e3eb0b
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
986af75
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
07a0a78
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
0c3dbfa
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
88036f6
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
f6503b5
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
0181459
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
b5153a1
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
285a210
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
ef48980
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
b4e937c
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
21eea46
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
4a6f308
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
14807b5
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
f51764b
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
682aced
Update lead360.yaml
srp-pawar Jul 17, 2024
540d2c7
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
107727b
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
cac8085
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
94ff00b
Update BuildAndPush.yaml
srp-pawar Jul 17, 2024
b673e4f
Create lead360-restart.yaml
sanjana0190 Jul 18, 2024
49961c4
Update BuildAndPush.yaml
sanjana0190 Jul 18, 2024
e02e388
Update BuildAndPush.yaml
sanjana0190 Jul 18, 2024
e87ffa2
Update BuildAndPush.yaml
sanjana0190 Jul 18, 2024
37fb482
Update BuildAndPush.yaml
sanjana0190 Jul 18, 2024
2f42b7b
Update lead360.yaml
sanjana0190 Jul 18, 2024
b976353
Update BuildAndPush.yaml
sanjana0190 Jul 18, 2024
3297002
Update BuildAndPush.yaml
sanjana0190 Jul 18, 2024
cc652f4
Update BuildAndPush.yaml
sanjana0190 Jul 18, 2024
bae52ba
Update BuildAndPush.yaml
sanjana0190 Jul 18, 2024
92302c1
Changed colour of title
sanjana0190 Jul 18, 2024
aaa82d7
Merge branch 'main_sync' into feature/leads_refactor
sanjana0190 Jul 19, 2024
86b0b7e
Merge branch 'main_sync' into feature/leads_refactor
srp-pawar Jul 26, 2024
3ff9370
Merge branch 'main_sync' into feature/leads_refactor
srp-pawar Aug 2, 2024
39891fc
updated RecordInline
srp-pawar Aug 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions .github/workflows/BuildAndPush.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Build and Push
run-name: ${{ github.actor }} is testing out Building the project
on: [push]
jobs:
Build-Lead360:
runs-on: ubuntu-latest
steps:
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.3
with:
node-version-file: package.json
- name: Setup NVM and yarn
run: |
sudo apt-get install curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
corepack enable
- name: Setup PostgreSQL Database
run: make postgres-on-linux
- name: Setup Environment variables
run: |
cp ./packages/twenty-front/.env.example ./packages/twenty-front/.env
cp ./packages/twenty-server/.env.example ./packages/twenty-server/.env
- name: Install dependencies
run: yarn
- name: Build Project
run: |
npx nx database:reset twenty-server
npx nx build twenty-server
npx nx build twenty-front

Deploy-lead360-App:
needs: Build-Lead360
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Setup Environment variables
run: |
cp ./packages/twenty-server/.env.example ./packages/twenty-server/.env

- name: Replace ConfigMap and Secret Values
run: |
sed -i "s|<POSTGRES_DB>|${{ secrets.POSTGRES_DB }}|" ./lead360.yaml
sed -i "s|<POSTGRES_USER>|$(echo -n ${{ secrets.POSTGRES_USER }} | base64)|" ./lead360.yaml
sed -i "s|<POSTGRES_PASSWORD>|$(echo -n ${{ secrets.POSTGRES_PASSWORD }} | base64)|" ./lead360.yaml
sed -i "s|<ACCESS_TOKEN_SECRET>|$(echo -n ${{ secrets.ACCESS_TOKEN_SECRET }} | base64)|" ./lead360.yaml
sed -i "s|<LOGIN_TOKEN_SECRET>|$(echo -n ${{ secrets.LOGIN_TOKEN_SECRET }} | base64)|" ./lead360.yaml
sed -i "s|<REFRESH_TOKEN_SECRET>|$(echo -n ${{ secrets.REFRESH_TOKEN_SECRET }} | base64)|" ./lead360.yaml
sed -i "s|<SIGN_IN_PREFILLED>|$(echo -n ${{ secrets.SIGN_IN_PREFILLED }} | base64)|" ./lead360.yaml

- name: Build Lead360DB container image
run: docker build -t ${{ secrets.REGISTRY_NAME }}/db:latest -f ./DockerfileDB .

- name: Build Lead360 container image
run: docker build -t ${{ secrets.REGISTRY_NAME }}/lead360v1:latest -f ./Dockerfile .

- name: Log in to DigitalOcean Container Registry with short-lived credentials
run: doctl registry login --expiry-seconds 1200

- name: Push image to DigitalOcean Container Registry
run: docker push ${{ secrets.REGISTRY_NAME }}/db:latest

- name: Push image to DigitalOcean Container Registry
run: docker push ${{ secrets.REGISTRY_NAME }}/lead360v1:latest

- name: Save DigitalOcean kubeconfig with short-lived credentials
run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 ${{ secrets.CLUSTER_NAME }}

- name : Apply Deployment
run : kubectl apply -f ./lead360.yaml

- name: Restart lead360db deployment
run: kubectl rollout restart deployment/lead360db-deployment

- name: Restart lead360 deployment
run: kubectl rollout restart deployment/lead360-deployment


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ storybook-static
.eslintcache
.cache
.nyc_output
packages/twenty-front/package.json
80 changes: 80 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Base image for common dependencies
FROM node:18.17.1-alpine as common-deps

WORKDIR /app

# Copy only the necessary files for dependency resolution
COPY ./package.json ./yarn.lock ./.yarnrc.yml ./tsconfig.base.json ./nx.json /app/
COPY ./.yarn/releases /app/.yarn/releases

COPY ./packages/twenty-emails/package.json /app/packages/twenty-emails/
COPY ./packages/twenty-server/package.json /app/packages/twenty-server/
COPY ./packages/twenty-server/patches /app/packages/twenty-server/patches
COPY ./packages/twenty-ui/package.json /app/packages/twenty-ui/
COPY ./packages/twenty-front/package.json /app/packages/twenty-front/

# Install all dependencies
RUN yarn && yarn cache clean && npx nx reset


# Build the back
FROM common-deps as twenty-server-build

# Copy sourcecode after installing dependences to accelerate subsequents builds
COPY ./packages/twenty-emails /app/packages/twenty-emails
COPY ./packages/twenty-server /app/packages/twenty-server

RUN npx nx run twenty-server:build

RUN mv /app/packages/twenty-server/dist /app/packages/twenty-server/build
RUN npx nx run twenty-server:build:packageJson
RUN mv /app/packages/twenty-server/dist/package.json /app/packages/twenty-server/package.json
RUN rm -rf /app/packages/twenty-server/dist
RUN mv /app/packages/twenty-server/build /app/packages/twenty-server/dist

RUN yarn workspaces focus --production twenty-emails twenty-server


# Build the front
FROM common-deps as twenty-front-build

ARG REACT_APP_SERVER_BASE_URL

COPY ./packages/twenty-front /app/packages/twenty-front
COPY ./packages/twenty-ui /app/packages/twenty-ui
RUN npx nx build twenty-front


# Final stage: Run the application
FROM node:18.17.1-alpine as twenty

# Used to run healthcheck in docker
RUN apk add --no-cache curl jq

COPY ./packages/twenty-docker/twenty/entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh

WORKDIR /app/packages/twenty-server

ARG REACT_APP_SERVER_BASE_URL
ENV REACT_APP_SERVER_BASE_URL $REACT_APP_SERVER_BASE_URL
ARG SENTRY_RELEASE
ENV SENTRY_RELEASE $SENTRY_RELEASE

# Copy built applications from previous stages
COPY --chown=1000 --from=twenty-server-build /app /app
COPY --chown=1000 --from=twenty-server-build /app/packages/twenty-server /app/packages/twenty-server
COPY --chown=1000 --from=twenty-front-build /app/packages/twenty-front/build /app/packages/twenty-server/dist/front

# Set metadata and labels
LABEL org.opencontainers.image.source=https://github.com/twentyhq/twenty
LABEL org.opencontainers.image.description="This image provides a consistent and reproducible environment for the backend and frontend, ensuring it deploys faster and runs the same way regardless of the deployment environment."

RUN mkdir /app/.local-storage
RUN chown -R 1000 /app

# Use non root user with uid 1000
USER 1000

CMD ["node", "dist/src/main"]
ENTRYPOINT ["/app/entrypoint.sh"]
54 changes: 54 additions & 0 deletions DockerfileDB
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
ARG IMAGE_TAG='15.5.0-debian-11-r15'

FROM bitnami/postgresql:${IMAGE_TAG}

ARG PG_MAIN_VERSION=15
ARG PG_GRAPHQL_VERSION=1.5.1
ARG WRAPPERS_VERSION=0.2.0
ARG TARGETARCH

USER root

RUN set -eux; \
ARCH="$(dpkg --print-architecture)"; \
case "${ARCH}" in \
aarch64|arm64) \
TARGETARCH='arm64'; \
;; \
amd64|x86_64) \
TARGETARCH='amd64'; \
;; \
*) \
echo "Unsupported arch: ${ARCH}"; \
exit 1; \
;; \
esac;

RUN apt update && apt install build-essential git curl default-libmysqlclient-dev -y

# Install precompiled pg_graphql extensions
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${PG_MAIN_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql--${PG_GRAPHQL_VERSION}.sql \
/opt/bitnami/postgresql/share/extension/
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${PG_MAIN_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql.control \
/opt/bitnami/postgresql/share/extension/
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${PG_MAIN_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql.so \
/opt/bitnami/postgresql/lib/

# Install precompiled supabase wrappers extensions
RUN curl -L "https://github.com/supabase/wrappers/releases/download/v${WRAPPERS_VERSION}/wrappers-v${WRAPPERS_VERSION}-pg${PG_MAIN_VERSION}-${TARGETARCH}-linux-gnu.deb" -o wrappers.deb
RUN dpkg --install wrappers.deb
RUN cp /usr/share/postgresql/${PG_MAIN_VERSION}/extension/wrappers* /opt/bitnami/postgresql/share/extension/
RUN cp /usr/lib/postgresql/${PG_MAIN_VERSION}/lib/wrappers* /opt/bitnami/postgresql/lib/

RUN export PATH=/usr/local/pgsql/bin/:$PATH
RUN export PATH=/usr/local/mysql/bin/:$PATH
RUN git clone https://github.com/EnterpriseDB/mysql_fdw.git
WORKDIR mysql_fdw
RUN make USE_PGXS=1
RUN make USE_PGXS=1 install

COPY ./packages/twenty-docker/twenty-postgres/init.sql /docker-entrypoint-initdb.d/

USER 1001
ENTRYPOINT ["/opt/bitnami/scripts/postgresql/entrypoint.sh"]
CMD ["/opt/bitnami/scripts/postgresql/run.sh"]
25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: "3.9"
services:
lead360db:
build:
context: .
dockerfile: DockerfileDB
volumes:
- twenty_db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=default
ports:
- "5431:5432"
lead360:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000" # only this port is exposed

volumes:
twenty_db_data:
name: twenty_db_data

58 changes: 58 additions & 0 deletions lead360-airflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: v1
kind: Service
metadata:
name: lead360-airflow-service
spec:
selector:
component: webserver
type: LoadBalancer

ports:
- protocol: TCP
port: 8080
targetPort: 8080

---

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-lead360-airflow
annotations:
cert-manager.io/issuer: letsencrypt-nginx
spec:
tls:
- hosts:
- airflow.lead360-synapsenet.shop
secretName: letsencrypt-nginx-airflow
ingressClassName: nginx
rules:
- host: airflow.lead360-synapsenet.shop
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: lead360-airflow-service
port:
number: 8080


---

apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-nginx-airflow
spec:
acme:
email: admin@synapsenet.co
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: lead360-airflow-private-key
solvers:
# Use the HTTP-01 challenge provider
- http01:
ingress:
class: nginx
Loading
Loading