Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP]This template runs on Rust axum as backend with nginx, postgres and redis over automatical SSL setup!

NotificationsYou must be signed in to change notification settings

loldruger/nginx-docker-ssl-template

Repository files navigation

Introduction

This template provides a ready-to-use foundation for your web backend, featuringNginx,PostgreSQL, andPGAdmin, all secured withLet's Encrypt SSL. It simplifies the deployment process and allows you to focus on building your application.

Getting Started

Prerequisite:

  1. You need to setup DNS config
  2. Set .env file to yours

.env:

#servicesSERVICES="    api: api.example.org:8080,    web: example.org:8081,    pga: pga.example.org:9090"#certbotSTAGING="true"#Set it to "true" for testingEMAIL="example@example.org"DOMAINS=""#automatically filled out when executing ./deploy.sh#postgres && pg-adminPOSTGRES_DATABASE="example_db"POSTGRES_PASSWORD="example_password"PGADMIN_DEFAULT_EMAIL="example@example.org"PGADMIN_DEFAULT_PASSWORD="example_password"
curl -sSL https://install.python-poetry.org| python3 -export PATH="/root/.local/bin:$PATH"poetry run python x.py
  1. Deploy your services:
$ sh deploy.sh

on your terminal. it will automatically set up everything.

if you get successful result but cannot access through your domain,$ docker compose restart nginx to reloadnginx service

Troubleshooting

  1. If you encounter an error during the certbot phase, such asCertbot failed to authenticate some domains... Fetching <url> Connection refused, Verify that the file/data/etc/letsencrypt/ssl-dhparams.pem is not empty.if it is, clean up your docker network and data files, then proceed with the second step below.

  2. If you get troubles on internet connection in container, uncomment the network configurations at the end of thedocker-compose.yaml file, which set the MTU length to 1450 or another value.

Roadmap

  1. Support multi-repo configuration.
  2. AdoptAnsible to configure multiple host servers.
  3. AdoptJenkins to build CI/CD pipeline
  4. Improve error handling and logging.

About

[WIP]This template runs on Rust axum as backend with nginx, postgres and redis over automatical SSL setup!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp