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
package middleware | |
import ( | |
"net/http" | |
"os" | |
"path" | |
"strings" | |
) | |
// FSHandler404 provides the function signature for passing to the FileServerWith404 |
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
package main | |
import ( | |
"net/http" | |
"os" | |
"bytes" | |
"path" | |
"path/filepath" | |
"mime/multipart" | |
"io" |
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
#!/usr/bin/php | |
#put under /etc/letsencrypt/renewal-hooks/deploy | |
<?php | |
// | |
//read environment variables | |
//the shell variable $RENEWED_LINEAGE will point to the config live subdirectory | |
//(for example, "/etc/letsencrypt/live/example.com") containing the new certs and | |
//keys; the shell variable $RENEWED_DOMAINS will contain a space-delimited list | |
//of renewed cert domains (for example, "example.com www.example.com"). |