Thank you for registering. Please use the OTP below to verify your email address. This code will expire in a few minutes.
+If you did not make this request, please safely ignore this email.
+diff --git a/Dockerfile b/Dockerfile index e9fd58a..3a59168 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ RUN go mod download COPY . . -RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \ - go build -trimpath -ldflags="-s -w" -o history-api ./cmd/history-api +RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o history-api ./cmd/api +RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o email-worker ./cmd/worker/email FROM alpine:latest @@ -20,9 +20,10 @@ ENV TZ=Asia/Ho_Chi_Minh WORKDIR /app COPY --from=builder /app/history-api . +COPY --from=builder /app/email-worker . COPY data ./data -RUN chmod +x ./history-api +RUN chmod +x ./history-api ./email-worker EXPOSE 3344 diff --git a/Makefile b/Makefile index 3c42e40..f1ea654 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ DB_URL ?= postgres://history:secret@localhost:5432/history_map?sslmode=disable -APP_DIR = cmd/history-api -MAIN_APP = ./cmd/history-api/ +APP_DIR = cmd/api +MAIN_APP = ./cmd/api/ MAIN_FILE = $(APP_DIR)/main.go DOCS_DIR = docs diff --git a/assets/resources/email_verify.html b/assets/resources/email_verify.html new file mode 100644 index 0000000..24afff9 --- /dev/null +++ b/assets/resources/email_verify.html @@ -0,0 +1,33 @@ + + +
+ + +Thank you for registering. Please use the OTP below to verify your email address. This code will expire in a few minutes.
+If you did not make this request, please safely ignore this email.
+We received a request to reset the password for your account. Here is your secure OTP:
+Warning: Never share this code with anyone. If you didn't request a password reset, please ignore this email or contact support immediately.
+