feat: API now allows you to set the so you can control who can interact with the API.

This commit is contained in:
2024-06-09 13:07:49 +02:00
parent 0a8efc730d
commit 5b656ae229
7 changed files with 34 additions and 6 deletions

View File

@@ -31,6 +31,7 @@ export const settingsStore = new Store({
api: true,
apiSettings: {
port: 47836,
hostname: "127.0.0.1",
},
customCSS: [],
disableBackgroundThrottle: true,
@@ -101,6 +102,11 @@ export const settingsStore = new Store({
},
]);
},
"5.14.0": (migrationStore) => {
buildMigration("5.14.0", migrationStore, [
{ key: settings.apiSettings.hostname, value: "127.0.0.1" },
]);
},
},
});