Add FCM device registration and Gitea bug reporter

This commit is contained in:
2026-09-15 01:01:08 +02:00
parent b2af866cf0
commit b96b1890d2
33 changed files with 1232 additions and 18 deletions
+12 -2
View File
@@ -1,12 +1,22 @@
import type { CapacitorConfig } from '@capacitor/cli';
const serverUrl = process.env.METALCIRCLE_SERVER_URL || 'https://konzerte.pinguholic.de/';
const localTest = process.env.METALCIRCLE_LOCAL_TEST === '1';
if (!serverUrl.startsWith('https://') && !(localTest && /^http:\/\/(127\.0\.0\.1|localhost):\d+\/?$/.test(serverUrl))) {
throw new Error('MetalCircle requires HTTPS, or explicit localhost test mode.');
}
const config: CapacitorConfig = {
appId: 'de.pinguholic.concerts',
appName: 'MetalCircle',
webDir: 'www',
loggingBehavior: 'none',
plugins: {
PushNotifications: { presentationOptions: ['sound', 'alert'] }
},
server: {
url: 'https://konzerte.pinguholic.de/',
cleartext: false
url: serverUrl,
cleartext: localTest
}
};