This is the hack approach to adding environment variables to the nginx configuration files. As with most Google results for this search, the reason is Docker.
I intended to deploy two Docker containers.
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>オフラインエディタ</title> | |
<style> | |
/* テキストエリアがリサイズ可能であることを示す */ | |
textarea { | |
resize: vertical; |
module("resty.consul", package.seeall) | |
_VERSION = '0.1.0' | |
function service_nodes(service) | |
local http = require "resty.http" | |
local json = require "cjson" | |
local hc = http:new() | |
local upstream = "" |
This is the hack approach to adding environment variables to the nginx configuration files. As with most Google results for this search, the reason is Docker.
I intended to deploy two Docker containers.
#!/bin/sh | |
OPTIONS=`vagrant ssh-config | awk -v ORS=' ' '{print "-o " $1 "=" $2}'` | |
scp ${OPTIONS} "$@" || echo "Transfer failed. Did you use 'default:' as the target?" |
### helper shell function | |
daemonup() { | |
[ -z "$1" ] && return | |
case $1 in | |
*/*) | |
DAEMONDIR=$1 | |
;; | |
*) | |
if [ -d "$SYS_HOME" ]; then |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use FindBin; | |
use lib "$FindBin::Bin/../lib"; | |
use Getopt::Long; | |
use IO::Socket::INET; | |
use IO::Poll; | |
use Log::Minimal; |