From 6909c7c45c67b2be69632424a67effa46d123230 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 27 Mar 2026 11:51:14 +0100 Subject: [PATCH] Refactor user engagement statistics reporting in broadcast.js - Enhanced the command table to include unique user logins for improved insights into user activity. - Updated the structure of the statistics display for better clarity and usability. These changes improve the depth and accuracy of user engagement reporting. --- apache-config-ssl-split.conf | 73 ++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 apache-config-ssl-split.conf diff --git a/apache-config-ssl-split.conf b/apache-config-ssl-split.conf new file mode 100644 index 0000000..872933f --- /dev/null +++ b/apache-config-ssl-split.conf @@ -0,0 +1,73 @@ + + # 1) Apex-Domain (ypchat.net) liefert NUR Redirect auf www + + ServerName ypchat.net + + Include /etc/letsencrypt/options-ssl-apache.conf + SSLCertificateFile /etc/letsencrypt/live/ypchat.net/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/ypchat.net/privkey.pem + + RewriteEngine On + RewriteRule ^ https://www.ypchat.net%{REQUEST_URI} [R=301,L] + + + # 2) Canonical Host (www.ypchat.net) liefert die App + + ServerName www.ypchat.net + + # SSL-Konfiguration + Include /etc/letsencrypt/options-ssl-apache.conf + SSLCertificateFile /etc/letsencrypt/live/ypchat.net/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/ypchat.net/privkey.pem + + # DocumentRoot (nur fuer statische Dateien wie ads.txt) + DocumentRoot /opt/ypchat/docroot + + # Deaktiviere DirectoryIndex, damit Apache keine index.html direkt serviert. + # Alle App-Anfragen sollen via Reverse-Proxy an Node.js gehen. + DirectoryIndex disabled + + + AllowOverride None + Require all granted + Options -Indexes + + + # Spezielle Regel fuer /ads.txt (muss vor ProxyPass-Ausnahmen stehen) + Alias /ads.txt /opt/ypchat/docroot/ads.txt + + Require all granted + + + RewriteEngine On + + # Unerwuenschten Query-Parameter entfernen + RewriteCond %{QUERY_STRING} ^(.*)&?wtd=UrId0B0tLmuMAK9H&?(.*)$ [NC] + RewriteRule ^ %{REQUEST_URI}?%1%2 [R=301,L] + + # WebSocket-Support fuer Socket.IO (vor normalem ProxyPass) + RewriteCond %{HTTP:Upgrade} websocket [NC] + RewriteCond %{HTTP:Connection} upgrade [NC] + RewriteRule ^/socket\.io/(.*) ws://localhost:4000/socket.io/$1 [P,L] + + ProxyPreserveHost On + + # Socket.IO (Polling + WS) + ProxyPass /socket.io/ http://localhost:4000/socket.io/ + ProxyPassReverse /socket.io/ http://localhost:4000/socket.io/ + + # Ausnahme fuer direkte statische Datei + ProxyPass /ads.txt ! + + # Alle anderen Requests an Node.js + ProxyPass / http://localhost:4000/ + ProxyPassReverse / http://localhost:4000/ + + ProxyRequests Off + ProxyTimeout 300 + + # Header fuer Backend / Express + RequestHeader set X-Forwarded-Proto "https" + RequestHeader set X-Forwarded-Port "443" + +