Move HasteBin to selfhosted server
This commit is contained in:
parent
39bff70c56
commit
46765e4546
2 changed files with 33 additions and 0 deletions
32
nginx/sites-available/paste.zzls.xyz.conf
Normal file
32
nginx/sites-available/paste.zzls.xyz.conf
Normal file
|
@ -0,0 +1,32 @@
|
|||
server {
|
||||
access_log /var/log/nginx/paste.access.log combined;
|
||||
|
||||
server_name paste.zzls.xyz;
|
||||
include configs/general.conf;
|
||||
include configs/securityheaders.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:40020/;
|
||||
include configs/proxyheaders.conf;
|
||||
}
|
||||
|
||||
listen 443 http3;
|
||||
listen 443 ssl http2; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/paste.zzls.xyz/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/paste.zzls.xyz/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
|
||||
}
|
||||
server {
|
||||
if ($host = paste.zzls.xyz) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
|
||||
server_name paste.zzls.xyz;
|
||||
listen 80;
|
||||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
1
nginx/sites-enabled/paste.zzls.xyz.conf
Symbolic link
1
nginx/sites-enabled/paste.zzls.xyz.conf
Symbolic link
|
@ -0,0 +1 @@
|
|||
../sites-available/paste.zzls.xyz.conf
|
Loading…
Reference in a new issue