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
--- nginx-websocket-proxy.conf.bk 2016-09-19 16:25:00.918484594 +0900 | |
+++ nginx-websocket-proxy.conf 2016-09-19 16:52:51.863111735 +0900 | |
@@ -3,9 +3,13 @@ | |
} | |
server { | |
- listen 80; | |
+ listen 443; | |
server_name localhost; |
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
<html> | |
<head> | |
<title>hello node.js!</title> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script src="https://your.domain.or.ip/socket.io/socket.io.js"></script> | |
<script> | |
$(document).ready(function(){ | |
var socket = io.connect('https://your.domain.or.ip'); | |
socket.on('connect', function() { | |
console.log("connect [sessid = " + socket.id + "]"); |
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
{ | |
"name": "hello-apex", | |
"description": "hello-apex: sample programs", | |
"memory": 128, | |
"timeout": 5, | |
"nameTemplate": "dev-{{.Project.Name}}_{{.Function.Name}}" | |
} |
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
{ | |
"name": "hello-apex", | |
"description": "hello-apex: sample programs", | |
"memory": 128, | |
"timeout": 5, | |
"nameTemplate": "stage-{{.Project.Name}}_{{.Function.Name}}" | |
} |
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
{ | |
"name": "hello-apex", | |
"description": "hello-apex: sample programs", | |
"memory": 128, | |
"timeout": 5, | |
"nameTemplate": "prod-{{.Project.Name}}_{{.Function.Name}}" | |
} |
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
{ | |
"hooks": { | |
"build": "GOOS=linux GOARCH=amd64 go build -o main main.go", | |
"clean": "rm -f main" | |
} | |
} |
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
{ | |
"runtime": "python3.6", | |
"hooks": { | |
"build": "pip install -r requirements.txt -t ." | |
} | |
} |
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
requests==2.18.2 |
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
{ | |
"runtime": "python3.6", | |
"hooks": { | |
"build": "pip install -r requirements.txt -t ./site-packages" | |
}, | |
"environment": { | |
"PYTHONPATH": "/var/runtime:/var/task/site-packages" | |
} | |
} |
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
from __future__ import print_function | |
import sys | |
import os | |
import logging | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
def handle(event, context): | |
logger.info("$ENV: " + str(os.environ)) |