Fully rename Pixeldrain to Nova

This commit is contained in:
2026-06-10 23:53:03 +02:00
parent 3c13cd1a14
commit 7b24a9d8cf
95 changed files with 321 additions and 1989 deletions

12
web.go
View File

@@ -9,15 +9,15 @@ import (
"github.com/julienschmidt/httprouter"
)
// DefaultConfig is the default configuration for Pixeldrain Web
const DefaultConfig = `## Pixeldrain Web UI server configuration
// DefaultConfig is the default configuration for Nova Web
const DefaultConfig = `## Nova Web UI server configuration
# Address used in the browser for making requests directly to the API. Can be
# relative to the current domain name
api_url_external = "/api"
# Address used to make internal API requests to the backend
api_url_internal = "https://pixeldrain.com/api"
api_url_internal = "https://nova.storage/api"
# When connecting to the API over a Unix domain socket you should enter the
# socket path here. api_url_internal needs to be correct too, as the API path
@@ -38,7 +38,7 @@ proxy_api_requests = true
maintenance_mode = false
`
// Init initializes the Pixeldrain Web UI controllers
// Init initializes the Nova Web UI controllers
func Init(r *httprouter.Router, prefix string, setLogLevel bool) {
log.Colours = true
log.Info("Starting web UI server (PID %v)", os.Getpid())
@@ -46,8 +46,8 @@ func Init(r *httprouter.Router, prefix string, setLogLevel bool) {
var conf webcontroller.Config
var _, err = config.New(
DefaultConfig,
"/etc/fnx",
"fnx_web.toml",
"/etc/nova",
"nova_web.toml",
&conf,
true,
)