{"id":21429573,"url":"https://github.com/loldruger/nginx-docker-ssl-template","last_synced_at":"2025-07-14T11:30:31.516Z","repository":{"id":147972915,"uuid":"618563557","full_name":"loldruger/nginx-docker-ssl-template","owner":"loldruger","description":"[WIP]This template runs on Rust axum as backend with nginx, postgres and redis over automatical SSL setup! ","archived":false,"fork":false,"pushed_at":"2025-01-15T15:33:17.000Z","size":79,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T07:12:37.962Z","etag":null,"topics":["backend","docker","letsencrypt","ngnix","postgres","redis","reverse-proxy","rust","sqlx","ssl","template","tokio"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loldruger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-24T18:40:13.000Z","updated_at":"2025-01-16T00:56:38.000Z","dependencies_parsed_at":"2023-11-26T03:23:18.169Z","dependency_job_id":"41fc88ca-05e0-4d4f-af61-42a706ec4aec","html_url":"https://github.com/loldruger/nginx-docker-ssl-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/loldruger/nginx-docker-ssl-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loldruger%2Fnginx-docker-ssl-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loldruger%2Fnginx-docker-ssl-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loldruger%2Fnginx-docker-ssl-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loldruger%2Fnginx-docker-ssl-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loldruger","download_url":"https://codeload.github.com/loldruger/nginx-docker-ssl-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loldruger%2Fnginx-docker-ssl-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265285076,"owners_count":23740457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","docker","letsencrypt","ngnix","postgres","redis","reverse-proxy","rust","sqlx","ssl","template","tokio"],"created_at":"2024-11-22T22:18:21.028Z","updated_at":"2025-07-14T11:30:31.503Z","avatar_url":"https://github.com/loldruger.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An Easy-Deployable Web Backend Server Infrastructure Kit\n## Introduction\n\nThis template provides a ready-to-use foundation for your web backend, featuring `Nginx`, `PostgreSQL`, and `PGAdmin`, all secured with `Let's Encrypt SSL`. It simplifies the deployment process and allows you to focus on building your application.\n\n# Getting Started\n\n## Prerequisite:\n 1. You need to setup DNS config\n 2. Set .env file to yours\n\n.env:\n```bash\n#services\nSERVICES=\"\n    api: api.example.org:8080,\n    web: example.org:8081,\n    pga: pga.example.org:9090\n\"\n\n#certbot\nSTAGING=\"true\" #Set it to \"true\" for testing\nEMAIL=\"example@example.org\"\nDOMAINS=\"\" #automatically filled out when executing ./deploy.sh\n\n#postgres \u0026\u0026 pg-admin\nPOSTGRES_DATABASE=\"example_db\"\nPOSTGRES_PASSWORD=\"example_password\"\n\nPGADMIN_DEFAULT_EMAIL=\"example@example.org\"\nPGADMIN_DEFAULT_PASSWORD=\"example_password\"\n```\n\n```sh\ncurl -sSL https://install.python-poetry.org | python3 -\nexport PATH=\"/root/.local/bin:$PATH\"\n\npoetry run python x.py\n```\n\n 3. **Deploy your services:**\n ```\n $ sh deploy.sh\n ```\n\non your terminal. it will automatically set up everything.\n\nif you get successful result but cannot access through your domain, `$ docker compose restart nginx` to reload `nginx service`\n\n# Troubleshooting\n 1. If you encounter an error during the certbot phase, such as `Certbot failed to authenticate some domains... Fetching \u003curl\u003e Connection refused`, Verify that the file `/data/etc/letsencrypt/ssl-dhparams.pem` is not empty.\nif it is, clean up your docker network and data files, then proceed with the second step below.\n\n 2. If you get troubles on internet connection in container, uncomment the network configurations at the end of the `docker-compose.yaml` file, which set the MTU length to 1450 or another value. \n\n# Roadmap\n 1. Support multi-repo configuration.\n 2. Adopt `Ansible` to configure multiple host servers.\n 3. Adopt `Jenkins` to build CI/CD pipeline\n 4. Improve error handling and logging.\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floldruger%2Fnginx-docker-ssl-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floldruger%2Fnginx-docker-ssl-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floldruger%2Fnginx-docker-ssl-template/lists"}