Skip to content

Commit

Permalink
chore: support render deploy (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux authored Oct 10, 2022
1 parent cfcf10c commit 4c45ae8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ The tunnel is based on `WebSocket`. We have a `WebSocket` connection between the

Firstly please deploy this project to your own web host with public internet access. The project is just a `Node.js` web server based on `Express.js`. So just deploy as what you do for [deploying Node.js web server](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/deployment).

You can deploy with Heroku with `Deploy To Heroku` button below:
#### Deploy to Heroku with following button

[![Deploy To Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

With Heroku, you can get a free HTTPS web server with a fixed public domain.
#### Deploy to Render with following button

[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy)

#### Get JWT Token

Expand Down
17 changes: 17 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
- type: web
name: lite_http_tunnel
env: node
buildCommand: npm install
startCommand: npm start
envVars:
- key: NODE_ENV
value: production
- key: SECRET_KEY
generateValue: true
- key: VERIFY_TOKEN
generateValue: true
- key: JWT_GENERATOR_USERNAME
sync: false
- key: JWT_GENERATOR_PASSWORD
sync: false

0 comments on commit 4c45ae8

Please sign in to comment.