default_type application/octet-stream;
access_log /www/logs/access.log;
error_log /www/logs/error.log;
if ($scheme != "https") {
return 301 https://$host$request_uri;
server_name peerplays-wallet.com;
ssl_certificate /etc/nginx/ssl/peerplays-wallet.com.crt;
ssl_certificate_key /etc/nginx/ssl/peerplays-wallet.com.key;
ssl_session_cache shared:SSL:1m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
proxy_pass http://websockets;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_next_upstream error timeout invalid_header http_500;
location ~ ^/[\w\d\.-]+\.(js|css|dat|png|json)$ {
try_files $uri /wallet$uri =404;
uwsgi_pass unix:/tmp/faucet.sock;