Produkt
Push++
Push++ ist ein Push Server, der zur Nutzung keine zusätzlichen Systeme oder Server benötigt. Sprich: Kein Java oder Javascript.
ab EUR 0,00
#
# The IPv4 address the server should listen on.
# This affects the web socket and the HTTP server.
# Only listen on your public address if you know what you do. You have been warned!
#
bind_address = 127.0.0.1
#
# Log file. Will be created if not existing.
# Make sure the push user has write permission to this location
# or you have to pre-create the log file and set permissions accordingly.
#
log_path = /var/log/push.log
#
# The port to listen on for web requests from the WSC/WCF plugin.
# Default: 8082
#
server_port = 8082
#
# The port to listen on for web socket connections.
# Configure your proxy (Nginx/Apache with mod_wstunnel) to forward connections to this port.
# Default: 8081
#
socket_port = 8081
#
# Enable Verbose logging
#
# Set this to true if you want to enable debug logging.
# This is useful if you are are a plugin developer and want to test your plugin with Push++
#
verbose = false
#
# The secret key to authenticate requests from the WSC/WCF plugin.
# Open the configuration page of the plugin to get your secret key.
# The sever process may not start if this value is not set correctly.
#
secret_key =
<virtualhost *:80>
ServerName www.eure-domain.de
DocumentRoot /var/www/html
.
.
.
ProxyPreserveHost on
ProxyPass "/socket" "ws://127.0.0.1:8081"
ProxyPassReverse "/socket" "ws://127.0.0.1:8081"
</virtualhost>
#For SSL
<virtualhost *:443>
ServerName www.eure-domain.de
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile /path/to/www_yoursite_com.crt
SSLCertificateKeyFile /path/to/www_yoursite_com.key
SSLCertificateChainFile /path/to/DigiCertCA.crt
.
.
.
ProxyPreserveHost on
ProxyPass "/socket" "ws://127.0.0.1:8081"
ProxyPassReverse "/socket" "ws://127.0.0.1:8081"
</virtualhost>
Alles anzeigen
server {
listen 443 ssl http2;
listen [::]:443 http2 ssl;
server_name www.eure-domain.de eure-domain.de;
index index.html index.htm index.php;
root /var/www/html/;
.
.
.
location /socket {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8081/$is_args$args;
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
proxy_redirect off;
}
}
Alles anzeigen