Skip to content

Instantly share code, notes, and snippets.

View ambrizals's full-sized avatar
⌨️
Typing....

Ambrizal Suryadinata ambrizals

⌨️
Typing....
View GitHub Profile
@sergiks
sergiks / README.md
Last active June 26, 2024 19:06
Let's Encrypt wildcard certificates in docker

NGINX and Certbot example with CloudFlare API in Docker

Sample config files to demonstrate seup that creates and updates free SSL certificates from Let's Encrypt given that the domains are maintained at CloudFlare service.

How it works

Certbot verifies domains ownership by accessing CloudFlare API that adds temporary TXT DNS records. To enable it You must provide your CloudFlare API token. More details in documentation for dns-cloudflare Certbot plugin.

Certbot saves created certificates in Docker volume certbot_etc. Pay attention to output of the certbot run - it mentions path to the created certificates.

@pyzenberg
pyzenberg / main.dart
Created September 4, 2019 13:38
Flutter WebSocket autoconnection
import 'dart:io';
import 'dart:async';
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {