Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
All credits go to by Bryan Roessler for his original post that I followed on how to setup LetsEncrypt wildcard certificate auto-renewal with Namecheap. I highly recommend you read his tutorial first and if you bump into issues, check out this gist next.
Unfortunately the original article is not up-to-date and doesn't have the option to leave comments so I can't communicate with the author for updates so I decided to write the updates in a Gist. I highlighted the sections that required an updated with
Correction #:. I managed to get the correct setup with the help of the amazing guys at LetsEncrypt community. Here's the help thread.
- Download acme-dns from https://github.com/joohoi/acme-dns/releases
- Move the binary somewhere sensible since we will be using
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
| <?php | |
| // Original @ https://stackoverflow.com/questions/14559371/symfony2-video-streaming | |
| use SplFileInfo; | |
| use RuntimeException; | |
| // Symfony >= 2.1 | |
| use Symfony\Component\HttpFoundation\StreamedResponse; | |
| public function streamAction($fileName) { |
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
| <?php | |
| use GuzzleHttp\Client; | |
| trait MailTestHelper | |
| { | |
| /** | |
| * @var \GuzzleHttp\Client | |
| */ | |
| protected $mailService; |
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
| <?php | |
| use Aws\S3\S3Client; | |
| use ZipStream\ZipStream; // https://github.com/maennchen/ZipStream-PHP | |
| use GuzzleHttp\Client as HttpClient; | |
| protected function streamAsZip($files) | |
| { | |
| $s3 = S3Client::factory('...'); | |
| $zip = new ZipStream("foobar.zip"); |
Config Apache with /etc/apache2/conf-available/le.conf:
Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
<Directory "/var/www/html/">
AllowOverride None
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
