From 46c7e5d058d6bdf36b56217cf258ff77ff2cc28f Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Sun, 8 Aug 2021 18:23:51 +0200 Subject: [PATCH 1/3] Save `maxredirects` on edit --- server/server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/server.js b/server/server.js index 5ebf6180b..7f5b0de04 100644 --- a/server/server.js +++ b/server/server.js @@ -278,6 +278,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString(); bean.keyword = monitor.keyword; bean.ignoreTls = monitor.ignoreTls; bean.upsideDown = monitor.upsideDown; + bean.maxredirects = monitor.maxredirects; bean.accepted_statuscodes_json = JSON.stringify(monitor.accepted_statuscodes); await R.store(bean) From 519add4fab6dba09026f7a2016152095a7f7733b Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Sun, 8 Aug 2021 18:24:05 +0200 Subject: [PATCH 2/3] ESLint `vite.config.js` --- vite.config.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/vite.config.js b/vite.config.js index f93fb0269..58580547c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,14 +1,14 @@ -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import legacy from '@vitejs/plugin-legacy' +import legacy from "@vitejs/plugin-legacy" +import vue from "@vitejs/plugin-vue" +import { defineConfig } from "vite" // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - vue(), - legacy({ - targets: ['ie > 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) - ] + plugins: [ + vue(), + legacy({ + targets: ["ie > 11"], + additionalLegacyPolyfills: ["regenerator-runtime/runtime"] + }) + ] }) From 9c17f59fe8226c640e9442856d3a79397b1200d0 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Sun, 8 Aug 2021 18:24:30 +0200 Subject: [PATCH 3/3] Fix few markdown lint warnings --- README.md | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index aac4fad5b..f729a71e9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ -
@@ -11,16 +10,16 @@ It is a self-hosted monitoring tool like "Uptime Robot". -# Features +## Features * Monitoring uptime for HTTP(s) / TCP / Ping. * Fancy, Reactive, Fast UI/UX. * Notifications via Webhook, Telegram, Discord, Gotify, Slack, Pushover, Email (SMTP) and more by Apprise. * 20 seconds interval. -# How to Use +## How to Use -## Docker +### Docker ```bash # Create a volume @@ -38,7 +37,7 @@ Change Port and Volume docker run -d --restart=always -p :3001 -v :/app/data --name uptime-kuma louislam/uptime-kuma:1 ``` -## Without Docker +### Without Docker Required Tools: Node.js >= 14, git and pm2. @@ -50,7 +49,7 @@ npm run setup # Option 1. Try it npm run start-server -# (Recommended) +# (Recommended) # Option 2. Run in background using PM2 # Install PM2 if you don't have: npm install pm2 -g pm2 start npm --name uptime-kuma -- run start-server @@ -70,8 +69,7 @@ pm2 stop uptime-kuma Browse to http://localhost:3001 after started. - -## (Optional) One more step for Reverse Proxy +### (Optional) One more step for Reverse Proxy This is optional for someone who want to do reverse proxy. @@ -80,7 +78,7 @@ Unlikely other web apps, Uptime Kuma is based on WebSocket. You need two more he Please read wiki for more info: https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy -## One-click Deploy +### One-click Deploy