next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt
#!/usr/bin/env bash | |
# | |
# Certbot Nginx Reload | |
# | |
# Let's Encrypt Certbot post hook command for Nginx which checks the updated | |
# configuration files and reloads the server if everything validates. | |
# | |
# Author : Justin Hartman <code@justinhartman.co> | |
# Version : 1.0.1 | |
# License : MIT <https://opensource.org/licenses/MIT> |
-- Made by Jairo Tylera | |
-- (github.com/Tylerian) | |
-- (c) 2019 - present | |
-- Released under MIT X11 License | |
CREATE | |
DEFINER=`root`@`localhost` | |
FUNCTION | |
`ST_Epgs3857_DWithin`(p1 POINT, p2 POINT, distance_mts FLOAT) | |
RETURNS |
<?php // Don't use this line. | |
/* | |
* Add the script below to wherever you store custom code snippets | |
* in your site, whether that's your child theme's functions.php, | |
* a custom plugin file, or through a code snippet plugin. | |
*/ | |
/** | |
* This function will connect wp_mail to your authenticated |
This is a small write up about how to migrate your pritunl install between servers. It's not especially detailed because I'm lazy and your migration story will most likely be different. All this can be avoided by using a remote/hosted mongo instance(compose.io, mongolab, etc.) and simply pointing your pritunl instance at that. If you want more details ask, and I'll do my best to answer and update this write-up accordingly. Also, feel free to criticize my grammar and spelling.
#FOR MULTIPLE REDIS INSTANCE INSTALLATION ON RHEL7+ USE THE FOLLOWING PATHS AND SETUP PROCESS:
$ cp /etc/redis.conf /etc/redis-xxx.conf
; php options | |
session.save_handler = files | |
session.save_path = /var/lib/php5 | |
session.gc_maxlifetime = 1440 | |
short_open_tag = On | |
expose_php = Off | |
; hhvm specific | |
hhvm.log.level = Warning |
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
/** Define Gravity Forms License Key */ | |
define("GF_LICENSE_KEY", "YOUR-LICENSE-KEY-HERE"); |