Enhance MessagesDialog component and localization for overproduction notifications
- Updated MessagesDialog.vue to extract additional parameters (value, branch_id, region_id) for better handling of overproduction scenarios. - Modified localization files (de/falukant.json and en/falukant.json) to reflect changes in the overproduction notification format, including branch information. - Improved data formatting for clarity in notifications related to production levels.
This commit is contained in:
31
yourpart-websocket-fixed.conf
Normal file
31
yourpart-websocket-fixed.conf
Normal file
@@ -0,0 +1,31 @@
|
||||
# /etc/apache2/sites-available/yourpart-websocket.conf
|
||||
<VirtualHost *:4551>
|
||||
ServerName www.your-part.de
|
||||
|
||||
# SSL-Konfiguration
|
||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
SSLCertificateFile /etc/letsencrypt/live/www.your-part.de/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/www.your-part.de/privkey.pem
|
||||
|
||||
# HTTP/2 deaktivieren
|
||||
Protocols http/1.1
|
||||
|
||||
# WebSocket-Proxy (unverschlüsselt zu Daemon)
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests Off
|
||||
|
||||
# WebSocket-Upgrade (muss VOR ProxyPass stehen)
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
||||
RewriteCond %{HTTP:Connection} upgrade [NC]
|
||||
RewriteRule ^/?(.*) "ws://localhost:4551/$1" [P,L]
|
||||
|
||||
# Fallback für normale HTTP-Requests (falls nötig)
|
||||
ProxyPass / http://localhost:2020/
|
||||
ProxyPassReverse / http://localhost:2020/
|
||||
|
||||
# CORS-Headers
|
||||
Header always set Access-Control-Allow-Origin "https://www.your-part.de"
|
||||
Header always set Access-Control-Allow-Methods "GET, POST, OPTIONS"
|
||||
Header always set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user