Skip to content

Commit

Permalink
SLUTA FIPPLA
Browse files Browse the repository at this point in the history
  • Loading branch information
foodelevator committed Jul 4, 2024
1 parent 5792e6b commit ee3faab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ NOTE: when building with podman, you may need to specify `--ulimit nofile=65535:

## Environment variables

| Name | Default | Description |
|--------------------|--------------------------------------|-----------------------------------------------------------------------------------------------------------|
| TAITAN_URL | https://taitan.datasektionen.se | URL to taitan from the backend. |
| RAZZLE_TAITAN_URL | https://taitan.datasektionen.se | URL to taitan from the frontend. **Set during both build and run**. |
| RAZZLE_CALYPSO_URL | https://calypso.datasektionen.se/api | URL to get news from calypso on. **Set during both build and run**. |
| TAITAN_CACHE_TTL | 3600 | Time to keep content from taitan cached in seconds. Tip: Set to 0 if using local taitan & bawang-content. |
| CALYPSO_CACHE_TTL | 30 | Time to keep news from calypso cached in seconds. Tip: Set to 0 if using local calypso. |
| PORT | 3000 | Port to listen on |
| NODE_OPTIONS | - | Set to --openssl-legacy-provider if using a non-ancient version of node |
| Name | Default | Description |
|--------------------------------------------------|--------------------------------------|-----------------------------------------------------------------------------------------------------------|
| TAITAN_URL | https://taitan.datasektionen.se | URL to taitan from the backend. |
| RAZZLE_TAITAN_URL | https://taitan.datasektionen.se | URL to taitan from the frontend. **Set during both build and run**. |
| RAZZLE_CALYPSO_URL | https://calypso.datasektionen.se/api | URL to get news from calypso on. **Set during both build and run**. |
| TAITAN_CACHE_TTL | 3600 | Time to keep content from taitan cached in seconds. Tip: Set to 0 if using local taitan & bawang-content. |
| CALYPSO_CACHE_TTL | 30 | Time to keep news from calypso cached in seconds. Tip: Set to 0 if using local calypso. |
| SLUTA_FIPPLA_MED_MINA_ENV_VARIABLER_RAZZLE__PORT | 3000 | Port to listen on |
| NODE_OPTIONS | - | Set to --openssl-legacy-provider if using a non-ancient version of node |

## Running

Expand Down
2 changes: 1 addition & 1 deletion job.nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ job "bawang" {
template {
data = <<ENV
TAITAN_URL=http://taitan.nomad.dsekt.internal
PORT={{ env "NOMAD_PORT_http" }}
SLUTA_FIPPLA_MED_MINA_ENV_VARIABLER_RAZZLE__PORT={{ env "NOMAD_PORT_http" }}
ENV
destination = "local/.env"
env = true
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import http from 'http'
const server = http.createServer(app)

let currentApp = app
const port = process.env.PORT || 3000
const port = process.env.SLUTA_FIPPLA_MED_MINA_ENV_VARIABLER_RAZZLE__PORT || 3000
server.listen(port, error => {
if (error) {
console.log(error)
Expand Down

0 comments on commit ee3faab

Please sign in to comment.