Sign inSign up

petermatthew/resendmail-web

By petermatthew

•Updated about 1 year ago

A webpage to send e-mail via resend api

Image
API management
1

10K+

petermatthew/resendmail-web repository overview

⁠Resend Mail Webpage⁠

A webpage to send e-mail via Resend API.

Docker Pulls Docker Image Size Docker Image Version

Build via Docker Compose, using the Python Flask framework.

⁠Step 1

Create a Resend⁠ account.

⁠Step 2

Add a domain to your Resend account.

⁠Step 3

Create an API Key of your account.

⁠Step 4

Clone this repo.

git clone https://github.com/WilliamPeterMatthew/resend-mail-webpage.git

⁠Step 5

Create an .env file

cp .env.example .env

⁠Step 6

Modify .env file

Variable NameDescriptionExample
RESEND_API_KEYThe API Key you obtained in Step 3re_1234567890aBcDeFgHiJkLmNoPqEsTuVw
SITE_PASSWORDWebsite password to prevent others from abusing itP@ssw0rd
PORTPort used for external access5827

⁠Step 7

Run the project by executing the following command in the directory.

docker-compose up -d

You can also use a pre-built version of the image instead of building locally.

docker-compose -f docker-compose-prebuild.yml up -d

⁠Congratulations

Now you can access the web page on the port you set in Step 6.

⁠Optional

You can configure Apache or Nginx to reverse proxy to port 80.

Apache Example

<VirtualHost *:80>
    ServerName example.com

    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPass / http://localhost:<the port you set in Step 6>/
    ProxyPassReverse / http://localhost:<the port you set in Step 6>/

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Nginx Example

server {
    listen 80;
    server_name example.com;

    location / {
        proxy_pass http://localhost:<the port you set in Step 6>;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    error_log /var/log/nginx/resendmail_error.log;
    access_log /var/log/nginx/resendmail_access.log;
}

Tag summary

Content type

Image

Digest

sha256:659b1af5a…

Size

52.4 MB

Last updated

about 1 year ago

docker pull petermatthew/resendmail-web