add environment variables

This commit is contained in:
William Bell committed 2023-08-03 19:31:41 +02:00
1 parent a27aba6cd0
commit 11f88ab13c
5 files changed
+20 -6

No files matched your search

+2 -1
View File
@@ -1,2 +1,3 @@
argon_modules
data
data
.env
+2 -1
View File
@@ -7,4 +7,5 @@ __isotope__
argon_modules
# main
data
data
.env
+8 -2
View File
@@ -1,2 +1,8 @@
let url = "http://isotope.wbell.dev"
let domain = "isotope.wbell.dev"
let url = env.get("URL","https://isotope.wbell.dev")
term.log("URL: "+url)
let domain = env.get("domain","isotope.wbell.dev")
term.log("domain: "+domain)
let port = number(env.get("PORT", 8080))
term.log("port: "+port)
term.log(env)
+6 -1
View File
@@ -6,4 +6,9 @@ services:
ports:
- '7030:7030'
volumes:
- './data:/isotope-server/data'
- './data:/isotope-server/data'
environment:
- URL=https://isotope.wbell.dev
- domain=isotope.wbell.dev
- PORT=7031
restart: unless-stopped
+2 -1
View File
@@ -1,4 +1,5 @@
import "http.ar" as http
import "config" as config
let app = http.server()
@@ -6,4 +7,4 @@ app.use(http.logger)
app.use(http.cookie)
app.use(http.formdata)
app.use(http.static("/","static"))
app.port = 7030
app.port = config.port