This commit is contained in:
@@ -20,12 +20,12 @@ const server = createServer(app);
|
||||
const NODE_ENV = process.env.NODE_ENV || 'development';
|
||||
const PORT = process.env.PORT || (NODE_ENV === 'production' ? 4000 : 3300);
|
||||
const IS_PRODUCTION = NODE_ENV === 'production';
|
||||
const PRIMARY_HOST = 'www.single-chat.net';
|
||||
const LEGACY_HOSTS = new Set(['single-chat.net', 'ypchat.net', 'www.ypchat.net']);
|
||||
const PRIMARY_HOST = 'ypchat.net';
|
||||
const LEGACY_HOSTS = new Set(['www.ypchat.net', 'single-chat.net', 'www.single-chat.net']);
|
||||
|
||||
// CORS-Origins konfigurieren
|
||||
const allowedOrigins = IS_PRODUCTION
|
||||
? ['https://single-chat.net', 'https://www.single-chat.net', 'https://ypchat.net', 'https://www.ypchat.net']
|
||||
? ['https://ypchat.net', 'https://www.ypchat.net', 'https://single-chat.net', 'https://www.single-chat.net']
|
||||
: ['http://localhost:5175', 'http://127.0.0.1:5175'];
|
||||
|
||||
// Socket.IO auf dem gleichen HTTP-Server wie Express
|
||||
|
||||
@@ -2,7 +2,7 @@ import { readFileSync, existsSync } from 'fs';
|
||||
import { join, resolve } from 'path';
|
||||
import { loadFeedback } from './feedback-store.js';
|
||||
|
||||
const SITE_URL = 'https://www.single-chat.net';
|
||||
const SITE_URL = 'https://ypchat.net';
|
||||
const DEFAULT_IMAGE = `${SITE_URL}/static/favicon.png`;
|
||||
const SEO_LOCALES = [
|
||||
{ code: 'de', label: 'Deutsch' },
|
||||
@@ -124,7 +124,7 @@ const seoData = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebSite',
|
||||
name: 'SingleChat',
|
||||
alternateName: 'Single-Chat.net',
|
||||
alternateName: 'YPChat',
|
||||
url: `${SITE_URL}/`,
|
||||
description: 'Kostenloser Single Chat ohne lange Registrierung. Lerne Singles kennen, chatte privat und tausche Bilder sicher aus.',
|
||||
inLanguage: 'de-DE'
|
||||
|
||||
Reference in New Issue
Block a user