- Add your project logo.
- Write a short introduction to the project.
- If you are using badges, add them here.
First, create a Docker network. This enables container DNS, which allows containers to communicate with one another by name.
docker network create mattermostnw
- Read the official Mattermost docker here
Generate SSL by mkcert
mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1With the following “Docker recipe”, you will set up a Docker node running separate WordPress installation on two domains or subdomains. This setup is pretty much production ready, with:
- nginx reverse proxy by Jason Wilder that automatically routes traffic to new containers that are created with the VIRTUAL_HOST=sub.domain.com environment variable. This nifty container performs a similar function to Traefik or HAProxy, but it is amazingly simple to use.
- letsencrypt-nginx-proxy-companion by Yves Blusseau that obtains an SSL certificate from Let’s Encrypt, the free Certificate Authority, when you specify the LETSENCRYPT_HOST and LETS_ENCRYPT_EMAIL environment variables on any application container (i.e. WordPress) that needs to be served over HTTPS. The companion even pings Let’s Encrypt every 90 days to automatically renew your certificates!
- Of
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
| Regular expression cheat sheet for Varnish | |
| Varnish regular expressions are NOT case sensitive. Varnish uses POSIX | |
| regular expressions, for a complete guide, see: "man 7 regex" | |
| Basic matching: | |
| req.url ~ "searchterm" | |
| True if req.url contains "searchterm" anywhere. | |
| req.url == "searchterm" |
First, install Solaar to see the battery level on the taskbar
sudo apt-get install solaarTo remap the keys, install
sudo apt-get install xbindkeys xautomationgcloud deployment-manager deployments create my-deployment --config qwiklabs.yaml
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
| const {Buffer} = require('safe-buffer'); | |
| const Compute = require('@google-cloud/compute'); | |
| const compute = new Compute(); | |
| /** | |
| * Resize Compute Engine instance-group. | |
| * | |
| * Expects a PubSub message with JSON-formatted event data containing the | |
| * following attributes: | |
| * zone - the GCP zone the instances are located in. |
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
| upstream backend { | |
| server localhost:8080; | |
| #server backup1.example.com:8080 backup; | |
| #server backup2.example.com:8080 backup; | |
| } | |
| # Set cache dir | |
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m; | |
| # Set cache key to include identifying components |