a7aa3fe26e
- 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
9 lines
234 B
Caddyfile
9 lines
234 B
Caddyfile
# 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
|
|
}
|