Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
//// Usage | |
var queue = createMessageQueue({ messagesPerMinute: 60 }) | |
queue.on('message', function(msg) { | |
console.log('message: ' + JSON.stringify(msg, null, 2)) | |
}) | |
queue.enqueue({ to: 'avian', from: 'sjs', body: 'cool story bro' }) |
cd $HOME | |
FileName='go1.13.4.linux-armv6l.tar.gz' | |
wget https://dl.google.com/go/$FileName | |
sudo tar -C /usr/local -xvf $FileName | |
cat >> ~/.bashrc << 'EOF' | |
export GOPATH=$HOME/go | |
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin | |
EOF | |
source ~/.bashrc |
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET https://dynamicdns.park-your-domain.com/update?host=@&domain=[domain]&password=[update-password]&ip=[local-ip] |
#!/bin/sh | |
# Script to build nginx with lua support. | |
# XXX: The result might work, but it was not thoroughly tested. Use it at your | |
# own risk. If you really need nginx with LUA in production, you should use | |
# OpenResty instead. | |
NGINX_VERSION='1.20.2' | |
NGX_DEVEL_KIT_VERSION='0.3.1' |
#!/bin/sh | |
# Script to build nginx with lua support. | |
NGINX_VERSION='1.18.0' | |
NGX_DEVEL_KIT_VERSION='0.3.1' | |
LUA_NGINX_MODULE_VERSION='0.10.16rc5' | |
STREAM_LUA_NGINX_MODULE_VERSION='0.0.8rc3' | |
# we use openresty's version of luajit here. |
[user@localhost certs]$ oc get builds | |
NAME TYPE FROM STATUS STARTED DURATION | |
nodejs-mongo-persistent-1 Source Git@e59fe75 Complete About an hour ago 2m37s | |
simple-nginx-ssl-reverseproxy-1 Source Git@552932f Complete 16 minutes ago 47s |
{ | |
"context": {}, | |
"event": { | |
"header": { | |
"messageId": "cedd4af3-a6ce-4e13-9c72-6bed87261eb6", | |
"namespace": "Alexa", | |
"name": "ChangeReport", | |
"payloadVersion": "3" | |
}, | |
"endpoint": { |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log info; | |
pid /var/run/nginx.pid; | |
events { worker_connections 1024; } | |
http { | |
default_type text/html; | |
log_format main '$remote_addr -> $request $status $body_bytes_sent bytes -> $upstream_addr'; | |
access_log /var/log/nginx/access.log main; |
#!/bin/bash | |
MONGO_DATABASE="your_db_name" | |
APP_NAME="your_app_name" | |
MONGO_HOST="127.0.0.1" | |
MONGO_PORT="27017" | |
TIMESTAMP=`date +%F-%H%M` | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
BACKUPS_DIR="/home/username/backups/$APP_NAME" |