From f76d556aef172d5f4b210cc57c1ce611d62a5c17 Mon Sep 17 00:00:00 2001 From: aalimsahin Date: Wed, 6 Nov 2024 02:04:26 +0300 Subject: [PATCH 01/10] feat: updated relayer dockerfile --- Relayer.Dockerfile | 56 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/Relayer.Dockerfile b/Relayer.Dockerfile index 1dafb15e..5f2d5629 100644 --- a/Relayer.Dockerfile +++ b/Relayer.Dockerfile @@ -1,5 +1,54 @@ -# Use the base image -FROM bisht13/relayer-base +# Use the latest official Rust image as the base +FROM rust:latest + +# Use bash as the shell +SHELL ["/bin/bash", "-c"] + +# Install NVM, Node.js, and Yarn +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash \ + && . $HOME/.nvm/nvm.sh \ + && nvm install 18 \ + && nvm alias default 18 \ + && nvm use default \ + && npm install -g yarn + +# Set the working directory +WORKDIR /relayer + +# Pre-configure Git to avoid common issues and increase clone verbosity +RUN git config --global advice.detachedHead false \ + && git config --global core.compression 0 \ + && git config --global protocol.version 2 \ + && git config --global http.postBuffer 1048576000 \ + && git config --global fetch.verbose true + +# Copy project files +COPY . . + +# Remove the packages/relayer directory +RUN rm -rf packages/relayer + +# Install Yarn dependencies with retry mechanism +RUN . $HOME/.nvm/nvm.sh && nvm use default && yarn || \ + (sleep 5 && yarn) || \ + (sleep 10 && yarn) + +# Install Foundry +RUN curl -L https://foundry.paradigm.xyz | bash \ + && source $HOME/.bashrc \ + && foundryup + +# Verify Foundry installation +RUN source $HOME/.bashrc && forge --version + +# Set the working directory for contracts +WORKDIR /relayer/packages/contracts + +# Install Yarn dependencies for contracts +RUN source $HOME/.nvm/nvm.sh && nvm use default && yarn + +# Build the contracts using Foundry +RUN source $HOME/.bashrc && forge build # Copy the project files COPY packages/relayer /relayer/packages/relayer @@ -7,6 +56,9 @@ COPY packages/relayer /relayer/packages/relayer # Set the working directory for the Rust project WORKDIR /relayer/packages/relayer +# Copy the IC PEM file +COPY packages/relayer/.ic.pem /relayer/.ic.pem + # Build the Rust project with caching RUN cargo build From 1784ac0ea2755f4ac6de3114af455cc22f1c8ffb Mon Sep 17 00:00:00 2001 From: aalimsahin Date: Wed, 6 Nov 2024 02:04:47 +0300 Subject: [PATCH 02/10] feat: created docker compose file for relayer with imap and smtp --- docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..70159c64 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +version: '3.8' + +services: + relayer-smtp: + build: + context: . + dockerfile: SMTP.Dockerfile + container_name: relayer-smtp + ports: + - "3000:3000" + env_file: + - .env + + relayer-imap: + build: + context: . + dockerfile: IMAP.Dockerfile + container_name: relayer-imap + ports: + - "3001:3001" + env_file: + - .env + + relayer: + build: + context: . + dockerfile: Relayer.Dockerfile + container_name: relayer + ports: + - "4500:4500" + env_file: + - .env \ No newline at end of file From 7f4c8144304c0bb473d0df0e07b713dfa3f3ffab Mon Sep 17 00:00:00 2001 From: aalimsahin Date: Wed, 6 Nov 2024 19:48:02 +0300 Subject: [PATCH 03/10] feat: minimized docker images --- .env.example | 47 +++++++++++++++++++++++++++++++++++ IMAP.Dockerfile | 44 +++++++++++++++++++++++--------- Relayer.Dockerfile | 62 ++++++++++++++++++++++++---------------------- SMTP.Dockerfile | 44 +++++++++++++++++++++----------- 4 files changed, 142 insertions(+), 55 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..856780a3 --- /dev/null +++ b/.env.example @@ -0,0 +1,47 @@ +RELAYER_ENDPOINT=http://localhost:4500/api/receiveEmail + +IMAP_LOGIN_ID= +IMAP_DOMAIN_NAME=imap.gmail.com +IMAP_PORT=993 +AUTH_TYPE=password + +IMAP_LOGIN_PASSWORD= +# OR +IMAP_CLIENT_ID= +IMAP_CLIENT_SECRET= +IMAP_AUTH_URL= +IMAP_TOKEN_URL= +IMAP_REDIRECT_URL= + +JSON_LOGGER=false + +SERVER_HOST=localhost +SERVER_PORT=3000 +SMTP_DOMAIN_NAME=smtp.gmail.com +SMTP_LOGIN_ID= +SMTP_LOGIN_PASSWORD= + +EMAIL_ACCOUNT_RECOVERY_VERSION_ID=1 +PRIVATE_KEY= +CHAIN_RPC_PROVIDER=https://sepolia.era.zksync.dev +CHAIN_RPC_EXPLORER=https://sepolia-era.zksync.network +CHAIN_ID=300 + +SMTP_SERVER="http://localhost:3000/api/sendEmail" + +PROVER_ADDRESS="https://zkemail--email-auth-prover-v1-5-2-flask-app.modal.run" + +DATABASE_URL="postgres://test@localhost/emailauth_test" +RELAYER_EMAIL_ADDR= +WEB_SERVER_ADDRESS="127.0.0.1:4500" +EMAIL_TEMPLATES_PATH=./eml_templates +REGEX_JSON_DIR_PATH="./src/regex_json" + +DKIM_CANISTER_ID="fxmww-qiaaa-aaaaj-azu7a-cai" +WALLET_CANISTER_ID= +PEM_PATH="./.ic.pem" +IC_REPLICA_URL="https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.icp0.io/?id=fxmww-qiaaa-aaaaj-azu7a-cai" + +CIRCUITS_DIR_PATH=../circuits + +ERROR_EMAIL_ADDR="error@example.com" \ No newline at end of file diff --git a/IMAP.Dockerfile b/IMAP.Dockerfile index bc1d1c1f..98f417bb 100644 --- a/IMAP.Dockerfile +++ b/IMAP.Dockerfile @@ -1,17 +1,37 @@ -# Use the official Rust image as a base image -FROM rust:latest +# Use the official Rust image as the base image for building +FROM rust:1.73 AS builder -# Set the working directory inside the container -WORKDIR /app +# Install necessary dependencies +RUN apt-get update && apt-get install -y \ + git \ + pkg-config \ + libssl-dev \ + && rm -rf /var/lib/apt/lists/* -# Clone the GitHub repository -RUN git clone https://github.com/zkemail/relayer-imap.git +# Set the working directory in the container +WORKDIR /usr/src/relayer-imap -# Change to the directory of the cloned repository -WORKDIR /app/relayer-imap +# Clone the repository +RUN git clone https://github.com/zkemail/relayer-imap.git . -# Build the Rust package -RUN cargo build +# Build the application +RUN cargo build --release -# Specify the command to run when the container starts -CMD ["cargo", "run", "--bin", "relayer-imap"] \ No newline at end of file +# Use a minimal base image for the final stage +FROM debian:bookworm-slim + +# Install necessary runtime dependencies including ca-certificates +RUN apt-get update && apt-get install -y \ + pkg-config \ + libssl-dev \ + ca-certificates \ + && rm -rf /var/lib/apt/lists/* + +# Copy the built binary from the builder stage +COPY --from=builder /usr/src/relayer-imap/target/release/relayer-imap /usr/local/bin/relayer-imap + +# Expose the port the app runs on +EXPOSE 8080 + +# Set the default command to run the application +CMD ["/usr/local/bin/relayer-imap"] diff --git a/Relayer.Dockerfile b/Relayer.Dockerfile index 5f2d5629..0bb27c04 100644 --- a/Relayer.Dockerfile +++ b/Relayer.Dockerfile @@ -1,5 +1,6 @@ -# Use the latest official Rust image as the base -FROM rust:latest +# Stage 1: Build Stage +# Use the official Rust image to build the project +FROM rust:latest AS builder # Use bash as the shell SHELL ["/bin/bash", "-c"] @@ -15,55 +16,58 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | b # Set the working directory WORKDIR /relayer -# Pre-configure Git to avoid common issues and increase clone verbosity +# Configure Git to avoid common issues and increase clone verbosity RUN git config --global advice.detachedHead false \ && git config --global core.compression 0 \ && git config --global protocol.version 2 \ && git config --global http.postBuffer 1048576000 \ && git config --global fetch.verbose true -# Copy project files +# Copy the project files to the build stage COPY . . -# Remove the packages/relayer directory -RUN rm -rf packages/relayer - -# Install Yarn dependencies with retry mechanism +# Install Yarn dependencies with a retry mechanism RUN . $HOME/.nvm/nvm.sh && nvm use default && yarn || \ (sleep 5 && yarn) || \ (sleep 10 && yarn) -# Install Foundry +# Install Foundry and add forge to PATH RUN curl -L https://foundry.paradigm.xyz | bash \ - && source $HOME/.bashrc \ - && foundryup - -# Verify Foundry installation -RUN source $HOME/.bashrc && forge --version + && . $HOME/.bashrc \ + && foundryup \ + && ln -s $HOME/.foundry/bin/forge /usr/local/bin/forge \ + && forge --version -# Set the working directory for contracts +# Build the contracts WORKDIR /relayer/packages/contracts +RUN source $HOME/.nvm/nvm.sh && nvm use default && yarn && forge build -# Install Yarn dependencies for contracts -RUN source $HOME/.nvm/nvm.sh && nvm use default && yarn - -# Build the contracts using Foundry -RUN source $HOME/.bashrc && forge build - -# Copy the project files -COPY packages/relayer /relayer/packages/relayer - -# Set the working directory for the Rust project +# Set the working directory for the Rust project and build it WORKDIR /relayer/packages/relayer # Copy the IC PEM file COPY packages/relayer/.ic.pem /relayer/.ic.pem # Build the Rust project with caching -RUN cargo build +RUN cargo build --release + +# Stage 2: Final Stage with Minimal Image +# Use a slim Debian image to keep the final image small +FROM debian:bookworm-slim + +# Install necessary runtime dependencies +RUN apt-get update && apt-get install -y \ + libssl-dev \ + && rm -rf /var/lib/apt/lists/* + +# Copy the built binary from the builder stage +COPY --from=builder /relayer/target/release/relayer /usr/local/bin/relayer + +# Copy the IC PEM file +COPY --from=builder /relayer/.ic.pem /relayer/.ic.pem -# Expose port +# Expose the required port EXPOSE 4500 -# Set the default command -CMD ["cargo", "run"] +# Set the default command to run the application +CMD ["/usr/local/bin/relayer"] diff --git a/SMTP.Dockerfile b/SMTP.Dockerfile index 8fd59e6b..62645ffe 100644 --- a/SMTP.Dockerfile +++ b/SMTP.Dockerfile @@ -1,20 +1,36 @@ -# Use the official Rust image as a base image -FROM rust:latest +# Use the official Rust image as the base image for building +FROM rust:1.73 AS builder -# Set the working directory inside the container -WORKDIR /app +# Install necessary dependencies +RUN apt-get update && apt-get install -y \ + git \ + pkg-config \ + libssl-dev \ + && rm -rf /var/lib/apt/lists/* -# Clone the GitHub repository -RUN git clone https://github.com/zkemail/relayer-smtp.git +# Set the working directory in the container +WORKDIR /usr/src/relayer-smtp -# Change to the directory of the cloned repository -WORKDIR /app/relayer-smtp +# Clone the repository +RUN git clone https://github.com/zkemail/relayer-smtp.git . -# Build the Rust package -RUN cargo build +# Build the application +RUN cargo build --release -# Expose port -EXPOSE 3000 +# Use a minimal base image for the final stage +FROM debian:bookworm-slim -# Specify the command to run when the container starts -CMD ["cargo", "run", "--bin", "relayer-smtp"] \ No newline at end of file +# Install necessary runtime dependencies +RUN apt-get update && apt-get install -y \ + pkg-config \ + libssl-dev \ + && rm -rf /var/lib/apt/lists/* + +# Copy the built binary from the builder stage +COPY --from=builder /usr/src/relayer-smtp/target/release/relayer-smtp /usr/local/bin/relayer-smtp + +# Expose the port the app runs on +EXPOSE 8080 + +# Set the default command to run the application +CMD ["/usr/local/bin/relayer-smtp"] \ No newline at end of file From 9a93cc7ca17f801bd24aca58c18bc179a9e01d68 Mon Sep 17 00:00:00 2001 From: wshino Date: Thu, 7 Nov 2024 10:07:01 +0700 Subject: [PATCH 04/10] Update docker-compose --- SMTP.Dockerfile | 3 ++- docker-compose.yml | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/SMTP.Dockerfile b/SMTP.Dockerfile index 62645ffe..87624888 100644 --- a/SMTP.Dockerfile +++ b/SMTP.Dockerfile @@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \ WORKDIR /usr/src/relayer-smtp # Clone the repository -RUN git clone https://github.com/zkemail/relayer-smtp.git . +RUN git clone https://github.com/zkfriendly/relayer-smtp.git . # Build the application RUN cargo build --release @@ -24,6 +24,7 @@ FROM debian:bookworm-slim RUN apt-get update && apt-get install -y \ pkg-config \ libssl-dev \ + ca-certificates \ && rm -rf /var/lib/apt/lists/* # Copy the built binary from the builder stage diff --git a/docker-compose.yml b/docker-compose.yml index 70159c64..a0c3b6ea 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: dockerfile: SMTP.Dockerfile container_name: relayer-smtp ports: - - "3000:3000" + - "8080:8080" env_file: - .env @@ -16,8 +16,6 @@ services: context: . dockerfile: IMAP.Dockerfile container_name: relayer-imap - ports: - - "3001:3001" env_file: - .env From d65c65c31ae3a7141081dea1eadd9c8047ca637b Mon Sep 17 00:00:00 2001 From: wshino Date: Fri, 8 Nov 2024 01:52:02 +0700 Subject: [PATCH 05/10] Use current working container image --- docker-compose.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a0c3b6ea..a7cd2f54 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,29 +2,31 @@ version: '3.8' services: relayer-smtp: - build: - context: . - dockerfile: SMTP.Dockerfile + image: wshino/relayer-smtp:latest container_name: relayer-smtp ports: - "8080:8080" env_file: - .env + extra_hosts: + - "host.docker.internal:host-gateway" relayer-imap: - build: - context: . - dockerfile: IMAP.Dockerfile + image: wshino/relayer-imap:latest container_name: relayer-imap env_file: - .env + extra_hosts: + - "host.docker.internal:host-gateway" relayer: - build: - context: . - dockerfile: Relayer.Dockerfile + image: bisht13/ar-relayer-base-4:latest container_name: relayer ports: - "4500:4500" env_file: - - .env \ No newline at end of file + - .env + entrypoint: > + /bin/sh -c "echo \"$IC_PEM_CONTENT\" | base64 -d > .ic.pem && exec cargo run" + extra_hosts: + - "host.docker.internal:host-gateway" \ No newline at end of file From 3f3efd03e648b8a2e2e0a539e6c4925df2c90eca Mon Sep 17 00:00:00 2001 From: wshino Date: Fri, 8 Nov 2024 02:15:20 +0700 Subject: [PATCH 06/10] Update .env.example --- .env.example | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 856780a3..c48e153b 100644 --- a/.env.example +++ b/.env.example @@ -33,7 +33,7 @@ PROVER_ADDRESS="https://zkemail--email-auth-prover-v1-5-2-flask-app.modal.run" DATABASE_URL="postgres://test@localhost/emailauth_test" RELAYER_EMAIL_ADDR= -WEB_SERVER_ADDRESS="127.0.0.1:4500" +WEB_SERVER_ADDRESS=127.0.0.1:4500 # For docker-compose, use 0.0.0.0 EMAIL_TEMPLATES_PATH=./eml_templates REGEX_JSON_DIR_PATH="./src/regex_json" @@ -44,4 +44,6 @@ IC_REPLICA_URL="https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.icp0.io/?id=fxmww-qiaaa- CIRCUITS_DIR_PATH=../circuits -ERROR_EMAIL_ADDR="error@example.com" \ No newline at end of file +ERROR_EMAIL_ADDR="error@example.com" + +IC_PEM_CONTENT= # Set the base64-encoded content of ic.pem \ No newline at end of file From 02bddc627f4ef6fdb8237d1bd8a3bb8d2d818c5c Mon Sep 17 00:00:00 2001 From: wshino Date: Fri, 8 Nov 2024 16:56:06 +0700 Subject: [PATCH 07/10] Update Relayer.Dockerfile and docker-compose.yml --- Cargo.toml | 3 +++ Relayer.Dockerfile | 18 +++++++++++++----- docker-compose.yml | 6 +++--- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fc094365..b5b82a58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,3 +2,6 @@ members = ["packages/relayer"] exclude = ["node_modules/*", "packages/relayer/src/abis"] resolver = "2" + +[profile.release] +lto = true \ No newline at end of file diff --git a/Relayer.Dockerfile b/Relayer.Dockerfile index 0bb27c04..b7d4b36d 100644 --- a/Relayer.Dockerfile +++ b/Relayer.Dockerfile @@ -5,6 +5,12 @@ FROM rust:latest AS builder # Use bash as the shell SHELL ["/bin/bash", "-c"] +# Install build-essential and other dependencies +RUN apt-get update && apt-get install -y \ + build-essential \ + curl \ + && rm -rf /var/lib/apt/lists/* + # Install NVM, Node.js, and Yarn RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash \ && . $HOME/.nvm/nvm.sh \ @@ -45,9 +51,6 @@ RUN source $HOME/.nvm/nvm.sh && nvm use default && yarn && forge build # Set the working directory for the Rust project and build it WORKDIR /relayer/packages/relayer -# Copy the IC PEM file -COPY packages/relayer/.ic.pem /relayer/.ic.pem - # Build the Rust project with caching RUN cargo build --release @@ -57,14 +60,19 @@ FROM debian:bookworm-slim # Install necessary runtime dependencies RUN apt-get update && apt-get install -y \ + build-essential \ libssl-dev \ + curl \ && rm -rf /var/lib/apt/lists/* # Copy the built binary from the builder stage COPY --from=builder /relayer/target/release/relayer /usr/local/bin/relayer -# Copy the IC PEM file -COPY --from=builder /relayer/.ic.pem /relayer/.ic.pem +# Copy eml_templates directory from builder stage to root directory +COPY --from=builder /relayer/packages/relayer/eml_templates /eml_templates + +# Copy regex_json directory from builder stage to root directory +COPY --from=builder /relayer/packages/relayer/src/regex_json /regex_json # Expose the required port EXPOSE 4500 diff --git a/docker-compose.yml b/docker-compose.yml index a7cd2f54..2bbbccbd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,13 +20,13 @@ services: - "host.docker.internal:host-gateway" relayer: - image: bisht13/ar-relayer-base-4:latest + image: wshino/relayer:latest container_name: relayer ports: - "4500:4500" env_file: - .env entrypoint: > - /bin/sh -c "echo \"$IC_PEM_CONTENT\" | base64 -d > .ic.pem && exec cargo run" + /bin/sh -c "echo \"$IC_PEM_CONTENT\" | base64 -d > /.ic.pem && exec /usr/local/bin/relayer" extra_hosts: - - "host.docker.internal:host-gateway" \ No newline at end of file + - "host.docker.internal:host-gateway" \ No newline at end of file From 00ed40068dbed074b540c8756af3dd1ed3f4fdb0 Mon Sep 17 00:00:00 2001 From: aalimsahin Date: Mon, 11 Nov 2024 19:33:22 +0700 Subject: [PATCH 08/10] feat: updated smtp port --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2bbbccbd..3d5a6b10 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: image: wshino/relayer-smtp:latest container_name: relayer-smtp ports: - - "8080:8080" + - "3000:3000" env_file: - .env extra_hosts: @@ -29,4 +29,4 @@ services: entrypoint: > /bin/sh -c "echo \"$IC_PEM_CONTENT\" | base64 -d > /.ic.pem && exec /usr/local/bin/relayer" extra_hosts: - - "host.docker.internal:host-gateway" \ No newline at end of file + - "host.docker.internal:host-gateway" \ No newline at end of file From 7dfc93172a9945f6d41a7cb0da92a1ff5793b298 Mon Sep 17 00:00:00 2001 From: aalimsahin Date: Thu, 14 Nov 2024 09:52:21 +0700 Subject: [PATCH 09/10] feat: updated env example --- .env.example | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index c48e153b..6fc477ca 100644 --- a/.env.example +++ b/.env.example @@ -1,11 +1,11 @@ -RELAYER_ENDPOINT=http://localhost:4500/api/receiveEmail +RELAYER_ENDPOINT=http://host.docker.internal:4500/api/receiveEmail -IMAP_LOGIN_ID= +IMAP_LOGIN_ID= # IMAP login id - usually your email address. IMAP_DOMAIN_NAME=imap.gmail.com IMAP_PORT=993 AUTH_TYPE=password -IMAP_LOGIN_PASSWORD= +IMAP_LOGIN_PASSWORD= # IMAP password - usually your email password. # OR IMAP_CLIENT_ID= IMAP_CLIENT_SECRET= @@ -15,25 +15,27 @@ IMAP_REDIRECT_URL= JSON_LOGGER=false -SERVER_HOST=localhost +SERVER_HOST=0.0.0.0 SERVER_PORT=3000 SMTP_DOMAIN_NAME=smtp.gmail.com -SMTP_LOGIN_ID= -SMTP_LOGIN_PASSWORD= +SMTP_LOGIN_ID= # IMAP login id - usually your email address. +SMTP_LOGIN_PASSWORD= # IMAP password - usually your email password. +MESSAGE_ID_DOMAIN=mail.gmail.com EMAIL_ACCOUNT_RECOVERY_VERSION_ID=1 PRIVATE_KEY= + CHAIN_RPC_PROVIDER=https://sepolia.era.zksync.dev CHAIN_RPC_EXPLORER=https://sepolia-era.zksync.network CHAIN_ID=300 -SMTP_SERVER="http://localhost:3000/api/sendEmail" +SMTP_SERVER=http://host.docker.internal:3000/api/sendEmail -PROVER_ADDRESS="https://zkemail--email-auth-prover-v1-5-2-flask-app.modal.run" +PROVER_ADDRESS="https://zkemail--email-auth-prover-v1-5-4-flask-app.modal.run" DATABASE_URL="postgres://test@localhost/emailauth_test" RELAYER_EMAIL_ADDR= -WEB_SERVER_ADDRESS=127.0.0.1:4500 # For docker-compose, use 0.0.0.0 +WEB_SERVER_ADDRESS=0.0.0.0:4500 EMAIL_TEMPLATES_PATH=./eml_templates REGEX_JSON_DIR_PATH="./src/regex_json" From 0160c3fd22c34e56e4711b546e7c1e2dbc783ae2 Mon Sep 17 00:00:00 2001 From: aalimsahin Date: Thu, 14 Nov 2024 09:53:49 +0700 Subject: [PATCH 10/10] feat: updated paths --- .env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 6fc477ca..b6936374 100644 --- a/.env.example +++ b/.env.example @@ -36,8 +36,8 @@ PROVER_ADDRESS="https://zkemail--email-auth-prover-v1-5-4-flask-app.modal.run" DATABASE_URL="postgres://test@localhost/emailauth_test" RELAYER_EMAIL_ADDR= WEB_SERVER_ADDRESS=0.0.0.0:4500 -EMAIL_TEMPLATES_PATH=./eml_templates -REGEX_JSON_DIR_PATH="./src/regex_json" +EMAIL_TEMPLATES_PATH=/eml_templates +REGEX_JSON_DIR_PATH=/regex_json DKIM_CANISTER_ID="fxmww-qiaaa-aaaaj-azu7a-cai" WALLET_CANISTER_ID=