mirror of
https://github.com/offen/website.git
synced 2024-11-22 01:00:26 +01:00
setup serverless deployment for alpha test
This commit is contained in:
parent
35b221b03d
commit
51629a0e46
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
.vscode
|
||||
.serverless
|
||||
node_modules/
|
||||
package-lock.json
|
||||
# mkcert certificates
|
||||
*.pem
|
||||
|
@ -11,10 +11,10 @@ services:
|
||||
- $GOPATH/pkg/mod:/go/pkg/mod
|
||||
environment:
|
||||
- GOPATH=/go
|
||||
- BASIC_AUTH_PASSWORD=test
|
||||
- KEY_FILE=key.txt
|
||||
ports:
|
||||
- 8081:8081
|
||||
command: go run cmd/kms/main.go -key local.offen.dev-key.pem -cert local.offen.dev.pem -port 8081
|
||||
command: go run cmd/kms/main.go -key local.offen.dev-key.pem -cert local.offen.dev.pem -port 8081 -origin https://local.offen.dev:9977
|
||||
|
||||
server:
|
||||
image: golang:1.12
|
||||
|
22
package.json
Normal file
22
package.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "offen",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/offen/offen.git"
|
||||
},
|
||||
"author": "offen",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/offen/offen/issues"
|
||||
},
|
||||
"homepage": "https://github.com/offen/offen#readme",
|
||||
"dependencies": {
|
||||
"serverless": "^1.45.0",
|
||||
"serverless-finch": "^2.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"serverless-domain-manager": "^2.6.13"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user