reshuffle

This commit is contained in:
Patrick 2024-11-23 17:00:17 +01:00
parent f944245238
commit fed3410ee6
13 changed files with 59 additions and 41 deletions

39
dist/nginx.cnf vendored Normal file
View file

@ -0,0 +1,39 @@
server {
listen 80;
server_name threadsphere.com;
return 301 https://www.threadsphere.com$request_uri;
}
server {
listen 80;
server_name www.threadsphere.com;
return 301 https://www.threadsphere.com$request_uri;
}
server {
listen 443 ssl;
server_name threadsphere.com;
ssl_certificate /etc/ssl/certs/thread-sphere.crt;
ssl_certificate_key /etc/ssl/private/thread-sphere.key;
return 301 https://www.threadsphere.com$request_uri;
}
server {
listen 443 ssl;
server_name www.threadsphere.com;
ssl_certificate /etc/ssl/certs/thread-sphere.crt;
ssl_certificate_key /etc/ssl/private/thread-sphere.key;
location / {
proxy_pass http://127.0.0.1:5001;
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;
}
}

20
dist/openssl.cnf vendored Normal file
View file

@ -0,0 +1,20 @@
[ req ]
default_bits = 2048
distinguished_name = req_distinguished_name
req_extensions = req_ext
prompt = no
[ req_distinguished_name ]
C = CH
ST = Zurich
L = Zurich
O = InterstellarNet
OU = NONE
CN = threadsphere.com
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = threadsphere.com
DNS.2 = www.threadsphere.com

12
dist/zonefile.cnf vendored Normal file
View file

@ -0,0 +1,12 @@
$TTL 604800
@ IN SOA ns.threadsphere.com. admin.threadsphere.com. (
2
604800
86400
2419200
604800 )
;
@ IN NS ns.threadsphere.com.
ns IN A 192.168.16.1
@ IN A 192.168.16.1
www IN A 192.168.16.1