Remove html from server

This commit is contained in:
Marcin Czop 2025-02-06 00:27:24 +01:00
parent 765d1fa075
commit e87cc775c8
No known key found for this signature in database
GPG key ID: 44BCC84471234D0D
2 changed files with 1 additions and 2 deletions

View file

@ -4,3 +4,4 @@ export const db = await new Database(Deno.env.get("DB_PATH") || "./neomap.sqlite
db.prepare("CREATE TABLE IF NOT EXISTS hexes (hex_id TEXT PRIMARY KEY NOT NULL CHECK(hex_id GLOB '[0-9a-f]*'), wifi INTEGER DEFAULT 0 NOT NULL, gsm INTEGER DEFAULT 0 NOT NULL, wcdma INTEGER DEFAULT 0 NOT NULL, lte INTEGER DEFAULT 0 NOT NULL, ble INTEGER DEFAULT 0 NOT NULL, created_at INTEGER DEFAULT (strftime('%s', 'now')) NOT NULL, last_update INTEGER DEFAULT (strftime('%s', 'now')) NOT NULL);").run(); db.prepare("CREATE TABLE IF NOT EXISTS hexes (hex_id TEXT PRIMARY KEY NOT NULL CHECK(hex_id GLOB '[0-9a-f]*'), wifi INTEGER DEFAULT 0 NOT NULL, gsm INTEGER DEFAULT 0 NOT NULL, wcdma INTEGER DEFAULT 0 NOT NULL, lte INTEGER DEFAULT 0 NOT NULL, ble INTEGER DEFAULT 0 NOT NULL, created_at INTEGER DEFAULT (strftime('%s', 'now')) NOT NULL, last_update INTEGER DEFAULT (strftime('%s', 'now')) NOT NULL);").run();
db.exec("PRAGMA journal_mode = WAL;"); db.exec("PRAGMA journal_mode = WAL;");
db.exec("PRAGMA busy_timeout = 5000;"); db.exec("PRAGMA busy_timeout = 5000;");
db.exec("PRAGMA synchronous = NORMAL;");

View file

@ -9,8 +9,6 @@ import { db } from "./db.ts";
import { kv } from "./kv.ts"; import { kv } from "./kv.ts";
import { Geosubmit } from "./types.d.ts"; import { Geosubmit } from "./types.d.ts";
import { stats } from "./html/stats.ts";
const app = new Hono(); const app = new Hono();
app.use(logger(), compress()); app.use(logger(), compress());