kanootoko 16bc1c0db7 update 2024-04-22
Changes:
- add jinja2 template engine instead of string-replacing
- fix certbot cron usage
- replace json servers configuration with yaml
2024-04-22 21:53:47 +03:00
2024-04-22 21:53:47 +03:00
2024-04-22 21:53:47 +03:00
2024-04-22 21:53:47 +03:00
2024-04-22 21:53:47 +03:00
2024-04-22 21:53:47 +03:00
2024-04-22 21:53:47 +03:00
2023-10-09 09:48:30 +03:00
2023-10-09 09:48:30 +03:00
2024-04-22 21:53:47 +03:00
2023-10-09 09:48:30 +03:00

ssl_nginx hosting

Preparation

Add your domains for certbot to domains.txt file at nginx directory and servers configuration json file in format

{
  "domain": {
    "redirect": "redirection_path",
    "options": [
      "some_nginx_option_on_server_level here;"
    ]
  }
}

to servers.json file at nginx directory.

User email used for certbot can be set as environment variable at build process or in .env file.

Usage

For the first time you should run (run_once.d-c.yml)[run_once.d-c.yml] docker-compose file to get certificates.

You can use (run_once.sh)[run_once.sh] script for this.

After it, docker compose up should do the trick. Certificates update attempt will be performed automatically at 02:15 on each seventh day of month. (set in Dockerfile of certbot and nginx).

certbot_manual.sh

This sceipt is available to perform manual certificates obtaining. One can use it to get a wildcard certificate for example (not available for automatic generation without an appropriate plugin).

Description
No description provided
Readme 50 KiB
Languages
Python 63.5%
Dockerfile 28.8%
Shell 7.7%