Skip to content

Instantly share code, notes, and snippets.

View vl-ivanov's full-sized avatar
🥃
Working from home

Vladimir Ivanov vl-ivanov

🥃
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am stz184 on github.
  • I am stz184 (https://keybase.io/stz184) on keybase.
  • I have a public key ASAKE13yypByesB4n2mJPSABvif0J1UO1d25NQaT9pVa3wo

To claim this, I am signing this object:

@vl-ivanov
vl-ivanov / nginx.conf
Created September 17, 2017 00:11 — forked from sj26/nginx.conf
Proxy mailcatcher with nginx including WebSockets
daemon off;
error_log stderr;
events {
worker_connections 1024;
}
http {
# As suggested in http://nginx.org/en/docs/http/websocket.html
map $http_upgrade $connection_upgrade {
1. Stop mysql:
systemctl stop mysqld
2. Set the mySQL environment option
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
3. Start mysql usig the options you just set
systemctl start mysqld
4. Login as root
@vl-ivanov
vl-ivanov / dev.conf
Created February 9, 2016 14:36
Wildcard nginx config. It handles all <something>.dev.raspberry.pw domains
server {
listen 80;
server_name "~^(?<sub>.+)\.dev\.raspberry\.pw$";
if ($sub = "") {
set $sub "raspberry.pw";
}
index index.html index.htm index.php;
root /var/www/$sub/htdocs;