summaryrefslogtreecommitdiff
path: root/www/homepage/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/homepage/files')
-rw-r--r--www/homepage/files/config/bookmarks.yaml.sample18
-rw-r--r--www/homepage/files/config/custom.css.sample1
-rw-r--r--www/homepage/files/config/custom.js.sample1
-rw-r--r--www/homepage/files/config/docker.yaml.sample10
-rw-r--r--www/homepage/files/config/kubernetes.yaml.sample2
-rw-r--r--www/homepage/files/config/services.yaml.sample18
-rw-r--r--www/homepage/files/config/settings.yaml.sample7
-rw-r--r--www/homepage/files/config/widgets.yaml.sample12
-rw-r--r--www/homepage/files/homepage.env3
-rw-r--r--www/homepage/files/homepage.in33
10 files changed, 105 insertions, 0 deletions
diff --git a/www/homepage/files/config/bookmarks.yaml.sample b/www/homepage/files/config/bookmarks.yaml.sample
new file mode 100644
index 000000000000..2b82ea7885f4
--- /dev/null
+++ b/www/homepage/files/config/bookmarks.yaml.sample
@@ -0,0 +1,18 @@
+---
+# For configuration options and examples, please see:
+# https://gethomepage.dev/configs/bookmarks
+
+- Developer:
+ - Github:
+ - abbr: GH
+ href: https://github.com/
+
+- Social:
+ - Reddit:
+ - abbr: RE
+ href: https://reddit.com/
+
+- Entertainment:
+ - YouTube:
+ - abbr: YT
+ href: https://youtube.com/
diff --git a/www/homepage/files/config/custom.css.sample b/www/homepage/files/config/custom.css.sample
new file mode 100644
index 000000000000..e24a020f593a
--- /dev/null
+++ b/www/homepage/files/config/custom.css.sample
@@ -0,0 +1 @@
+/* https://gethomepage.dev/configs/custom-css-js/ */
diff --git a/www/homepage/files/config/custom.js.sample b/www/homepage/files/config/custom.js.sample
new file mode 100644
index 000000000000..e24a020f593a
--- /dev/null
+++ b/www/homepage/files/config/custom.js.sample
@@ -0,0 +1 @@
+/* https://gethomepage.dev/configs/custom-css-js/ */
diff --git a/www/homepage/files/config/docker.yaml.sample b/www/homepage/files/config/docker.yaml.sample
new file mode 100644
index 000000000000..2f4c4e38f38c
--- /dev/null
+++ b/www/homepage/files/config/docker.yaml.sample
@@ -0,0 +1,10 @@
+---
+# For configuration options and examples, please see:
+# https://gethomepage.dev/configs/docker/
+
+# my-docker:
+# host: 127.0.0.1
+# port: 2375
+
+# my-docker:
+# socket: /var/run/docker.sock
diff --git a/www/homepage/files/config/kubernetes.yaml.sample b/www/homepage/files/config/kubernetes.yaml.sample
new file mode 100644
index 000000000000..aca6e8213672
--- /dev/null
+++ b/www/homepage/files/config/kubernetes.yaml.sample
@@ -0,0 +1,2 @@
+---
+# sample kubernetes config
diff --git a/www/homepage/files/config/services.yaml.sample b/www/homepage/files/config/services.yaml.sample
new file mode 100644
index 000000000000..39b379263e61
--- /dev/null
+++ b/www/homepage/files/config/services.yaml.sample
@@ -0,0 +1,18 @@
+---
+# For configuration options and examples, please see:
+# https://gethomepage.dev/configs/services/
+
+- My First Group:
+ - My First Service:
+ href: http://localhost/
+ description: Homepage is awesome
+
+- My Second Group:
+ - My Second Service:
+ href: http://localhost/
+ description: Homepage is the best
+
+- My Third Group:
+ - My Third Service:
+ href: http://localhost/
+ description: Homepage is 😎
diff --git a/www/homepage/files/config/settings.yaml.sample b/www/homepage/files/config/settings.yaml.sample
new file mode 100644
index 000000000000..2e828c082ffe
--- /dev/null
+++ b/www/homepage/files/config/settings.yaml.sample
@@ -0,0 +1,7 @@
+---
+# For configuration options and examples, please see:
+# https://gethomepage.dev/configs/settings/
+
+providers:
+ openweathermap: openweathermapapikey
+ weatherapi: weatherapiapikey
diff --git a/www/homepage/files/config/widgets.yaml.sample b/www/homepage/files/config/widgets.yaml.sample
new file mode 100644
index 000000000000..b1cf0f558872
--- /dev/null
+++ b/www/homepage/files/config/widgets.yaml.sample
@@ -0,0 +1,12 @@
+---
+# For configuration options and examples, please see:
+# https://gethomepage.dev/configs/info-widgets/
+
+- resources:
+ cpu: true
+ memory: true
+ disk: /
+
+- search:
+ provider: duckduckgo
+ target: _blank
diff --git a/www/homepage/files/homepage.env b/www/homepage/files/homepage.env
new file mode 100644
index 000000000000..a1f764ecc623
--- /dev/null
+++ b/www/homepage/files/homepage.env
@@ -0,0 +1,3 @@
+NODE_ENV=production
+HOSTNAME=0.0.0.0
+PORT=3000
diff --git a/www/homepage/files/homepage.in b/www/homepage/files/homepage.in
new file mode 100644
index 000000000000..7f32638bc62f
--- /dev/null
+++ b/www/homepage/files/homepage.in
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# PROVIDE: homepage
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Configuration settings for Home Page in /etc/rc.conf
+#
+# homepage_enable (bool): Enable Home Page.
+# homepage_log (str): Log output.
+# homepage_runas (str): User to run Home Page as.
+#
+
+. /etc/rc.subr
+
+name="homepage"
+desc="Highly customizable homepage with service API integrations"
+rcvar="${name}_enable"
+
+load_rc_config $name
+
+: ${homepage_enable:="NO"}
+: ${homepage_env_file:="%%PREFIX%%/etc/homepage.env"}
+: ${homepage_log:="/var/log/homepage.log"}
+: ${homepage_runas:="%%USER%%"}
+
+homepage_chdir="%%HOMEDIR%%"
+pidfile="/var/run/${name}.pid"
+procname="%%LOCALBASE%%/bin/node"
+command="/usr/sbin/daemon"
+command_args="-u '${homepage_runas}' -p '${pidfile}' -t '${desc}' -o '${homepage_log}' '${procname}' server.js"
+
+run_rc_command "$1"