feat: initialize backend with Express and CORS for password check API

- Add package.json with dependencies for express, cors, and dotenv
- Create server.js to handle password checking and health check endpoints
- Implement CORS with configurable allowed origins
- Ensure PASSWORD environment variable is set before starting the server
This commit is contained in:
Tuomas Puro
2026-06-04 11:22:33 +03:00
commit a7aa3fe26e
7 changed files with 954 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Lisää tämä lohko palvelimesi Caddyfile-tiedostoon.
# Korvaa "api.sinun-domain.fi" omalla osoitteellasi.
#
# Caddy hakee Let's Encrypt -sertifikaatin automaattisesti.
api.sinun-domain.fi {
reverse_proxy pakohuone-api:3001
}