From 7b3e778ea5aa826e2229b090833dcd94c2ad7174 Mon Sep 17 00:00:00 2001 From: nthouliss Date: Thu, 15 Jun 2023 16:08:34 +1000 Subject: [PATCH] Create render.yaml --- render.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 render.yaml diff --git a/render.yaml b/render.yaml new file mode 100644 index 0000000..e47cf7e --- /dev/null +++ b/render.yaml @@ -0,0 +1,40 @@ +services: + - type: web + name: Owlbear Rodeo v1 + runtime: static + buildCommand: yarn build + staticPublishPath: ./build + pullRequestPreviewsEnabled: false + buildFilter: + paths: + - src/**/*.js + - src/**/*.ts + ignoredPaths: + - src/**/*.test.js + routes: + - type: rewrite + source: /* + destination: /index.html + headers: + - path: /* + name: X-Frame-Options + value: sameorigin + - path: /* + name: X-Robots-Tag + value: noindex + # A Docker web service + - type: web + name: obr-backend + env: docker + region: oregon # optional (defaults to oregon) check other regions here: https://render.com/docs/regions + plan: free + branch: master # optional (defaults to master) + rootDir: ./backend + dockerfilePath: ./backend/Dockerfile + numInstances: 1 # optional (defaults to 1) + healthCheckPath: /health + envVars: + - key: ORIGIN_WHITELIST + value: $RENDER_EXTERNAL_HOSTNAME + - key: PORT + value: 9000 \ No newline at end of file