From 4c45ae872589e163cb326921829172235e8a386d Mon Sep 17 00:00:00 2001 From: Embbnux Ji Date: Mon, 10 Oct 2022 23:59:34 +0800 Subject: [PATCH] chore: support render deploy (#7) --- README.md | 6 ++++-- render.yaml | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 render.yaml diff --git a/README.md b/README.md index ec1b22a..09e7267 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/render.yaml b/render.yaml new file mode 100644 index 0000000..abaf19d --- /dev/null +++ b/render.yaml @@ -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