mirror of
https://github.com/Open-Argon/isotope-server.git
synced 2026-10-28 09:43:51 +00:00
add environment variables
This commit is contained in:
1 parent
a27aba6cd0
commit
11f88ab13c
5 files changed
+20
-6
No files matched your search
+2
-1
@@ -1,2 +1,3 @@
|
|||||||
argon_modules
|
argon_modules
|
||||||
data
|
data
|
||||||
|
.env
|
||||||
+2
-1
@@ -7,4 +7,5 @@ __isotope__
|
|||||||
argon_modules
|
argon_modules
|
||||||
|
|
||||||
# main
|
# main
|
||||||
data
|
data
|
||||||
|
.env
|
||||||
@@ -1,2 +1,8 @@
|
|||||||
let url = "http://isotope.wbell.dev"
|
let url = env.get("URL","https://isotope.wbell.dev")
|
||||||
let domain = "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
@@ -6,4 +6,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- '7030:7030'
|
- '7030:7030'
|
||||||
volumes:
|
volumes:
|
||||||
- './data:/isotope-server/data'
|
- './data:/isotope-server/data'
|
||||||
|
environment:
|
||||||
|
- URL=https://isotope.wbell.dev
|
||||||
|
- domain=isotope.wbell.dev
|
||||||
|
- PORT=7031
|
||||||
|
restart: unless-stopped
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import "http.ar" as http
|
import "http.ar" as http
|
||||||
|
import "config" as config
|
||||||
|
|
||||||
let app = http.server()
|
let app = http.server()
|
||||||
|
|
||||||
@@ -6,4 +7,4 @@ app.use(http.logger)
|
|||||||
app.use(http.cookie)
|
app.use(http.cookie)
|
||||||
app.use(http.formdata)
|
app.use(http.formdata)
|
||||||
app.use(http.static("/","static"))
|
app.use(http.static("/","static"))
|
||||||
app.port = 7030
|
app.port = config.port
|
||||||
Reference in new issue
Block a user