89 lines
2.8 KiB
Plaintext
89 lines
2.8 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name beta.paste.drycat.fr;
|
|
|
|
location /.well-known/acme-challenge {
|
|
proxy_pass http://127.0.0.1:81;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://beta.paste.drycat.fr$request_uri;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name beta.paste.drycat.fr;
|
|
index index.html index.php index.htm;
|
|
|
|
|
|
ssl_certificate /etc/nginx/ssl/certificates/beta.paste.drycat.fr.crt;
|
|
ssl_certificate_key /etc/nginx/ssl/certificates/beta.paste.drycat.fr.key;
|
|
ssl_trusted_certificate /etc/nginx/ssl/lets-encrypt-x3-cross-signed.pem;
|
|
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
|
|
|
|
|
|
|
|
|
|
#include /nginx/conf.d/ssl.conf;
|
|
|
|
ssl_protocols TLSv1.1 TLSv1.2;
|
|
ssl_ecdh_curve X25519:P-521:P-384:P-256;
|
|
ssl_ciphers "EECDH+CHACHA20:EECDH+AESGCM";
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
#ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
|
|
|
|
ssl_session_cache shared:SSL:20m;
|
|
ssl_session_timeout 15m;
|
|
ssl_session_tickets off;
|
|
|
|
|
|
#include /nginx/conf.d/headers.conf;
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
|
|
#include /nginx/conf.d/hsts.conf;
|
|
add_header Strict-Transport-Security "max-age=31536000";
|
|
|
|
|
|
|
|
#include /nginx/conf.d/ocsp.conf;
|
|
ssl_stapling on;
|
|
ssl_stapling_verify on;
|
|
resolver 9.9.9.9 51.254.25.115 valid=300s;
|
|
resolver_timeout 5s;
|
|
|
|
location / {
|
|
#include /nginx/conf.d/proxy.conf;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
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_set_header X-Remote-Port $remote_port;
|
|
proxy_set_header Proxy "";
|
|
proxy_pass_header Server;
|
|
proxy_redirect off;
|
|
|
|
|
|
client_max_body_size 50M;
|
|
proxy_pass http://127.0.0.1:9000;
|
|
}
|
|
|
|
location ~ /\.well-known/acme-challenge {
|
|
default_type "text/plain";
|
|
root /etc/ssl/private/acme-challenge/;
|
|
allow all;
|
|
}
|
|
}
|
|
|
|
|
|
|