Compare commits
2 Commits
a2cd9693a3
...
f2bd71183f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2bd71183f | ||
|
|
e1aa33fa7b |
@@ -26,7 +26,7 @@ USER denouser
|
|||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||||
CMD deno eval "fetch('http://localhost:8000/health').then(r => r.ok ? Deno.exit(0) : Deno.exit(1))" || exit 1
|
CMD deno eval "fetch('http://localhost:' + (Deno.env.get('PORT') || '8000') + '/health').then(r => r.ok ? Deno.exit(0) : Deno.exit(1))" || exit 1
|
||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
CMD ["deno", "run", "--allow-net", "--allow-env", "src/main.ts"]
|
CMD ["deno", "run", "--allow-net", "--allow-env", "src/main.ts"]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const DEEPL_API_KEY = Deno.env.get("DEEPL_AUTH_KEY");
|
|||||||
const BEARER_TOKEN = Deno.env.get("BEARER_TOKEN");
|
const BEARER_TOKEN = Deno.env.get("BEARER_TOKEN");
|
||||||
const PORT = parseInt(Deno.env.get("PORT") || "8000");
|
const PORT = parseInt(Deno.env.get("PORT") || "8000");
|
||||||
const DEEPL_API_BASE = "https://api-free.deepl.com/v2";
|
const DEEPL_API_BASE = "https://api-free.deepl.com/v2";
|
||||||
const FRONTEND_URLS = ["http://localhost", "https://deep-lite.netlify.app"];
|
const FRONTEND_URLS = ["http://localhost", "https://deeplite.apoena.dev"];
|
||||||
|
|
||||||
if (!DEEPL_API_KEY) {
|
if (!DEEPL_API_KEY) {
|
||||||
console.error("ERROR: DEEPL_AUTH_KEY environment variable is required");
|
console.error("ERROR: DEEPL_AUTH_KEY environment variable is required");
|
||||||
|
|||||||
Reference in New Issue
Block a user