diff --git a/src/.lua/config.lua b/src/.lua/config.lua
index 2749b1c..0c8f328 100644
--- a/src/.lua/config.lua
+++ b/src/.lua/config.lua
@@ -5,7 +5,7 @@ return function(app)
local config = { -- default
name = "XRForge",
baseurl="/",
- host="localhost",
+ hostname="",
admin_title = "admin panel",
admin_subtitle = "Manage your XR experiences here",
admin_user = "admin",
diff --git a/src/.lua/util.lua b/src/.lua/util.lua
index 2ef7e9e..2fde540 100644
--- a/src/.lua/util.lua
+++ b/src/.lua/util.lua
@@ -89,9 +89,14 @@ util.getURL = function(url,opts)
return 'http://localhost:' .. app.port .. url
else
port = ':' .. GetPort()
- if port == ':80' then port = '' end
+ if port == ':80' then port = '' end
if arg[1] == 'generate' and port == ':8080' then port = '' end
- return GetScheme() .. '://' .. (app.opts.host or GetHost()) .. port .. (url or GetPath())
+ -- if hostname is not localhost or ip then we can assume live server (reverse proxy e.g.)
+ if port and not GetHost():match('localhost') and not GetHost():match('^[0-9]') then
+ port = ''
+ end
+ local host = #app.opts.hostname > 0 and app.opts.hostname or GetHost()
+ return GetScheme() .. '://' .. host .. port .. (url or GetPath())
end
end
diff --git a/src/img/xrforge_term.svg b/src/img/xrforge_term.svg
deleted file mode 100644
index 91f5e4d..0000000
--- a/src/img/xrforge_term.svg
+++ /dev/null
@@ -1,322 +0,0 @@
-
diff --git a/src/page/about.html b/src/page/about.html
index 1e92259..21ab790 100644
--- a/src/page/about.html
+++ b/src/page/about.html
@@ -214,9 +214,6 @@ div#xrecosystem{
Hello post-scarcity technology.
-
-
-
@@ -242,12 +239,12 @@ div#xrecosystem{
users can host content themselves
✅ HTTP/DAT/IPFS Open Protocols
-
❌ we own your data
+
❌ they own your data
User operated content and viewers
✅
-
❌ we control both
+
❌ they control both
portals to remote content
diff --git a/src/page/dir.html b/src/page/dir.html
index 2524b9f..81ce6fa 100644
--- a/src/page/dir.html
+++ b/src/page/dir.html
@@ -21,7 +21,7 @@ end}
{if items then
function getURL(url)
- if app.arg[1] == 'generate' and url:match("://") then
+ if app.arg[1] == 'generate' or url:match("://") then
url = 'janusweb/index.html#janus.url=' ..
EscapeFragment( url ) .. '&janus.referrer=' .. util.getURL(urlpath )
url = util.baseURLify(url)