This file contains hidden or 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
| #!/bin/bash | |
| web_service='nginx' | |
| config_file=${1:-/usr/local/etc/le-renew-webroot.ini} | |
| le_path='/opt/letsencrypt' | |
| exp_limit=30; | |
| function log { | |
| echo [$(date -u)] $1 |
This file contains hidden or 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
| ADDRESS=127.0.0.1 | |
| PORT=9000 | |
| APPLY_EVOLUTIONS=true | |
| APPLICATION_SECRET=my_secret |
This file contains hidden or 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
| import play.api.db.evolutions.{ClassLoaderEvolutionsReader, Evolution} | |
| import play.api.libs.Collections | |
| /*** | |
| * Evolutions reader that reads a single revision from the class path. | |
| * | |
| * @param revision the revision number to load | |
| * @param prefix A prefix that gets added to the resource file names | |
| */ | |
| class SingleRevisionClassLoaderEvolutionsReader(val revision: Int, val prefix: String) extends ClassLoaderEvolutionsReader(prefix = prefix) { |
OlderNewer