-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Soubinan
committed
Jan 24, 2025
1 parent
9db398c
commit c57e51d
Showing
2 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
metadata: | ||
name: Mafl | ||
get_version_command: curl -s https://api.github.com/repos/hywax/mafl/releases/latest | jq -r '.tag_name' | ||
description: Minimalistic flexible homepage. | ||
categories: Homepage | ||
project_source: https://github.com/hywax/mafl | ||
distribution: debian | ||
release: bookworm | ||
architectures: | ||
- amd64 | ||
instructions: | ||
files: | ||
- path: /opt/mafl/settings.env | ||
generator: dump | ||
mode: "0440" | ||
content: |- | ||
PORT=3000 | ||
NEXT_TELEMETRY_DISABLED=1 | ||
NODE_ENV="production" | ||
NODE_OPTIONS="--no-experimental-fetch" | ||
HOSTNAME="127.0.0.1" | ||
DEFAULT_COLOR_SCHEME="dark" | ||
- path: /etc/systemd/system/mafl.service | ||
generator: dump | ||
mode: "0440" | ||
content: |- | ||
[Unit] | ||
Description=mafl Dashboard | ||
After=network.target | ||
ConditionPathExists=/opt/mafl/.installed__ | ||
[Service] | ||
Type=simple | ||
WorkingDirectory=/opt/mafl | ||
EnvironmentFile=/opt/mafl/settings.env | ||
PIDFile=/opt/mafl/mafl.pid | ||
ExecStart=/usr/bin/node /opt/mafl/server/index.mjs | ||
Restart=always | ||
[Install] | ||
WantedBy=multi-user.target | ||
packages: | ||
- git | ||
- nodejs | ||
|
||
repositories: | ||
- name: nodejs | ||
url: |- | ||
deb http://deb.nodesource.com/node_20.x nodistro main | ||
key: |-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X2RYS22wg80k6C/Hwmh5F45faEuNxsV+bPx7oPUrt5n6GMx84vEP3i1+FDBi | ||
0pt/B/QnDFBXki1BGvJ35f5NwDefK8VaInxXP3ZN/WIbtn5dqxppkV/YkO7GiJlp | ||
Jlju9rf3kKUIQzKQWxFsbCAPIHoWv7rH9RSxgDithXtG6Yg5R1aeBbJaPNXL9wpJ | ||
YBJbiMjkAFaz4B95FOqZm3r7oHugiCGsHX0AEQEAAYkBHwQYAQIACQUCV0M3UAIb | ||
DAAKCRAvWbX5mxvgtE/OB/0VN88DR3Y3fuqy7lq/dthkn7Dqm9YXdorZl3L152eE | ||
IF882aG8FE3qZdaLGjQO4oShAyNWmRfSGuoH0XERXAI9n0r8m4mDMxE6rtP7tHet | ||
y/5M8x3CTyuMgx5GLDaEUvBusnTD+/v/fBMwRK/cZ9du5PSG4R50rtst+oYyC2ao | ||
x4I2SgjtF/cY7bECsZDplzatN3gv34PkcdIg8SLHAVlL4N5tzumDeizRspcSyoy2 | ||
K2+hwKU4C4+dekLLTg8rjnRROvplV2KtaEk6rxKtIRFDCoQng8wfJuIMrDNKvqZw | ||
FRGt7cbvW5MCnuH8MhItOl9Uxp1wHp6gtav/h8Gp6MBa | ||
=MARt | ||
-----END PGP PUBLIC KEY BLOCK----- | ||
actions: | ||
- trigger: post-files | ||
pongo: true | ||
action: |- | ||
#!/bin/bash | ||
set -eux | ||
git clone https://github.com/hywax/mafl -b v{{ image.serial }} --depth 1 /app | ||
cd /app | ||
rm yarn.lock | ||
npm install -g yarn | ||
npx @nuxt/telemetry disable | ||
yarn install --non-interactive | ||
yarn run build | ||
mkdir -p /opt/mafl/extra | ||
cp -r /app/.output/* /opt/mafl/ | ||
cp /app/extra/healthcheck.mjs /opt/mafl/extra/healthcheck.mjs | ||
rm -rf /app | ||
touch /opt/mafl/.installed__ | ||
systemctl enable mafl.service |