What is Nostr?
The_Ben / The Ben
npub1pt0…jyc6
2024-11-01 21:00:59
in reply to nevent1q…8jx9

The_Ben on Nostr: Full example (with Letsencypt SSL cert) of my hosted Haven relay: server { http2 on; ...

Full example (with Letsencypt SSL cert) of my hosted Haven relay:

server {
http2 on;
listen 443 ssl;
listen [::]:443 ssl;
server_name h.codingarena.top;
server_tokens off;
root /home/user/h.codingarena.top;

ssl_certificate /etc/nginx/ssl/h.codingarena.top/xxx/server.crt;
ssl_certificate_key /etc/nginx/ssl/h.codingarena.top/xxx/server.key;

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
ssl_dhparam /etc/nginx/dhparams.pem;

index index.html index.htm index.php;

charset utf-8;

location / {
proxy_pass http://127.0.0.1:3355;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}

location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }

access_log off;
error_log /var/log/nginx/h.codingarena.top-error.log error;

error_page 404 /index.php;

location ~ /\.(?!well-known).* {
deny all;
}
}
Author Public Key
npub1pt0kw36ue3w2g4haxq3wgm6a2fhtptmzsjlc2j2vphtcgle72qesgpjyc6