Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart button logic added on UI and backend, Some localizations added for japanese log msg #4755

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
services:
uptime-kuma:
image: louislam/uptime-kuma:1
image: uptime-kuma:latest
volumes:
- ./data:/app/data
ports:
# <Host Port>:<Container Port>
- 3001:3001
restart: unless-stopped
container_name: uptime-kuma
networks:
- anpr_network
extra_hosts:
- "host.docker.internal:host-gateway"

networks:
anpr_network:
external: true
2 changes: 2 additions & 0 deletions db/knex_init_db.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ async function createTables() {
.onUpdate("CASCADE");
table.integer("interval").notNullable().defaultTo(20);
table.text("url");
table.text("restart_url");
table.integer("restart_interval");
table.string("type", 20);
table.integer("weight").defaultTo(2000);
table.string("hostname", 255);
Expand Down
14 changes: 14 additions & 0 deletions db/knex_migrations/2024-03-18-0000-add-restart-logic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
exports.up = function (knex) {
return knex.schema.alterTable("monitor", function (table) {
// Add new column monitor.remote_browser
table.integer("restart_interval").nullable().defaultTo(null);
table.string("restart_url", 255).nullable();
});
};

exports.down = function (knex) {
return knex.schema.alterTable("monitor", function (table) {
table.dropColumn("restart_interval");
table.dropColumn("restart_url");
});
};
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@
"wait-on": "^7.2.0",
"whatwg-url": "~12.0.1"
}
}
}