mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
90 lines
3.3 KiB
Diff
90 lines
3.3 KiB
Diff
From 57893a68cec83e6900f810980ea8b8296aa75ea3 Mon Sep 17 00:00:00 2001
|
|
From: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
Date: Wed, 17 Apr 2024 06:33:38 +0000
|
|
Subject: [PATCH] change web and config paths
|
|
|
|
---
|
|
etc/webapp_config.json | 14 +++++++-------
|
|
main.go | 4 ++--
|
|
2 files changed, 9 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/etc/webapp_config.json b/etc/webapp_config.json
|
|
index c0bfbe3..5f1bb00 100644
|
|
--- a/etc/webapp_config.json
|
|
+++ b/etc/webapp_config.json
|
|
@@ -44,7 +44,7 @@
|
|
},
|
|
"swagger": {
|
|
"enable": true,
|
|
- "api_json": "/usr/local/homer/etc/swagger.json",
|
|
+ "api_json": "/etc/homer/swagger.json",
|
|
"api_host": "127.0.0.1:9080"
|
|
},
|
|
"loki_config": {
|
|
@@ -72,7 +72,7 @@
|
|
"help": "Settings for the HOMER Webapp Server. If you have gzip_static = false, please be sure that your dist directory has uncompressed .js files",
|
|
"host": "0.0.0.0",
|
|
"port": 9080,
|
|
- "root": "/usr/local/homer/dist",
|
|
+ "root": "/usr/share/webapps/homer/dist",
|
|
"gzip": true,
|
|
"path": "/",
|
|
"gzip_static": true,
|
|
@@ -94,12 +94,12 @@
|
|
"port": 443,
|
|
"min_tls_version": "1.2",
|
|
"use_mozilla_profile": true,
|
|
- "cert": "/usr/local/homer/tls/cert.pem",
|
|
- "key": "/usr/local/homer/tls/key.pem"
|
|
+ "cert": "/etc/homer/tls/cert.pem",
|
|
+ "key": "/etc/homer/tls/key.pem"
|
|
},
|
|
"system_settings": {
|
|
"help": "Settings for HOMER logs",
|
|
- "logpath": "/usr/local/homer/log",
|
|
+ "logpath": "/var/log/homer",
|
|
"logname": "homer-app.log",
|
|
"_loglevels": "can be: fatal, error, warn, info, debug, trace",
|
|
"loglevel": "error",
|
|
@@ -107,7 +107,7 @@
|
|
},
|
|
"dashboard_settings": {
|
|
"_comment": "Here you can define a customs dashboards home",
|
|
- "dashboard_home": "/usr/local/homer/etc/dashboard_home.json"
|
|
+ "dashboard_home": "/etc/homer/dashboard_home.json"
|
|
},
|
|
"auth_settings": {
|
|
"_comment": "The type param can be internal, ldap, http_auth",
|
|
@@ -196,4 +196,4 @@
|
|
"1_default"
|
|
]
|
|
}
|
|
-}
|
|
\ No newline at end of file
|
|
+}
|
|
diff --git a/main.go b/main.go
|
|
index 159376b..cc682e1 100644
|
|
--- a/main.go
|
|
+++ b/main.go
|
|
@@ -191,7 +191,7 @@ func initFlags() {
|
|
appFlags.DatabaseHomerPassword = flag.String("database-homer-password", "homer_password", "database-homer-password")
|
|
appFlags.DatabaseHomerConfig = flag.String("database-homer-config", "homer_config", "database-homer-config")
|
|
appFlags.DatabaseHomerData = flag.String("database-homer-data", "homer_data", "database-homer-data")
|
|
- appFlags.PathWebAppConfig = flag.String("webapp-config-path", "/usr/local/homer/etc", "the path to the webapp config file")
|
|
+ appFlags.PathWebAppConfig = flag.String("webapp-config-path", "/etc/homer", "the path to the webapp config file")
|
|
appFlags.LogName = flag.String("webapp-log-name", "", "the name prefix of the log file.")
|
|
appFlags.LogPathWebApp = flag.String("webapp-log-path", "", "the path for the log file.")
|
|
appFlags.APIPrefix = flag.String("webapp-api-prefix", "", "API prefix.")
|
|
@@ -748,7 +748,7 @@ func configureAsHTTPServer() {
|
|
/* static */
|
|
rootPath := viper.GetString("http_settings.root")
|
|
if rootPath == "" {
|
|
- rootPath = "/usr/local/homer/dist"
|
|
+ rootPath = "/usr/share/webapps/homer/dist"
|
|
}
|
|
|
|
/* static */
|
|
--
|
|
2.44.0
|
|
|