-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow XDG Directory Specfications and Add Support for SSL (#68)
* Follow XDG Base Directory Specification * Replace hostname handling with full access to hypercorn config * Change from using `ini` to `toml` for the config file * Update default configuration adding more details and don't catch OS errors * Use `bind` if no secure port set * Change where configuration file lives, add certificate scripts, and add documentation about SSL support.
- Loading branch information
1 parent
3673c0d
commit cfed952
Showing
5 changed files
with
206 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# -*- coding: utf-8 -*- | ||
# Scanner Web Server Certificate Create | ||
|
||
# Using https://github.com/infinityofspace/certbot_dns_duckdns | ||
|
||
certbot certonly \ | ||
--non-interactive \ | ||
--agree-tos \ | ||
--email <your_email_address> \ | ||
--preferred-challenges dns \ | ||
--authenticator dns-duckdns \ | ||
--dns-duckdns-credentials <path_to_credentials> \ | ||
--dns-duckdns-propagation-seconds 60 \ | ||
-d "<your_domain_name>.duckdns.org" \ | ||
--config-dir ~/letsencrypt/config \ | ||
--work-dir ~/letsencrypt/work \ | ||
--logs-dir ~/letsencrypt/logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# -*- coding: utf-8 -*- | ||
# Scanner Web Server Certificate Renew | ||
|
||
# Look at https://eff-certbot.readthedocs.io/en/latest/using.html#setting-up-automated-renewal | ||
# Better idea from that website: | ||
# MAKE SURE TO REPLACE `<your_username_here>` SECTION! | ||
# SLEEPTIME=$(awk 'BEGIN{srand(); print int(rand()*(3600+1))}'); echo "0 0,12 * * * <your_username_here> sleep $SLEEPTIME && certbot renew --config-dir ~/letsencrypt/config --work-dir ~/letsencrypt/work --logs-dir ~/letsencrypt/logs -q" | sudo tee -a /etc/crontab > /dev/null | ||
|
||
certbot renew \ | ||
--config-dir ~/letsencrypt/config \ | ||
--work-dir ~/letsencrypt/work \ | ||
--logs-dir ~/letsencrypt/logs |
Oops, something went wrong.