diff options
Diffstat (limited to 'terminaldweller.com/main')
-rw-r--r-- | terminaldweller.com/main/docker-compose.yaml | 21 | ||||
-rw-r--r-- | terminaldweller.com/main/nginx.conf | 30 | ||||
-rw-r--r-- | terminaldweller.com/main/srv/.well-known/webfinger/finger.json | 1 |
3 files changed, 52 insertions, 0 deletions
diff --git a/terminaldweller.com/main/docker-compose.yaml b/terminaldweller.com/main/docker-compose.yaml new file mode 100644 index 0000000..2f927c0 --- /dev/null +++ b/terminaldweller.com/main/docker-compose.yaml @@ -0,0 +1,21 @@ +version: "3" +services: + nginx: + image: nginx:stable + networks: + - mainnet + ports: + - "7773:8080" + restart: unless-stopped + volumes: + - ./nginx.conf:/etc/nginx/nginx.conf:ro + - /etc/letsencrypt/archive/terminaldweller.com/:/certs/ + - ./srv:/srv + cap_drop: + - ALL + cap_add: + - CHOWN + - SETGID + - SETUID +networks: + mainnet: diff --git a/terminaldweller.com/main/nginx.conf b/terminaldweller.com/main/nginx.conf new file mode 100644 index 0000000..4007cca --- /dev/null +++ b/terminaldweller.com/main/nginx.conf @@ -0,0 +1,30 @@ +events { + worker_connections 1024; +} +# curl https://fosstodon.org/.well-known/webfinger?resource=acct:terminaldweller@fosstodon.org +http { + server { + listen 8080 ssl http2; + keepalive_timeout 70; + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; + ssl_ciphers HIGH:!aNULL:!MD5: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 on; + ssl_certificate /certs/fullchain1.pem; + ssl_certificate_key /certs/privkey1.pem; + ssl_protocols TLSv1.2 TLSv1.3; + add_header Content-Security-Policy "default-src 'self';"; + add_header X-Frame-Options SAMEORIGIN always; + add_header X-Content-Type-Options "nosniff" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header Referrer-Policy "no-referrer"; + sendfile on; + tcp_nopush on; + + location /.well-known/webfinger { + add_header Access-Control-Allow-Origin "*"; + add_header Content-Type "application/json"; + alias /srv/.well-known/webfinger/finger.json; + } + # https://metacode.biz/openpgp/web-key-directory? + } +} diff --git a/terminaldweller.com/main/srv/.well-known/webfinger/finger.json b/terminaldweller.com/main/srv/.well-known/webfinger/finger.json new file mode 100644 index 0000000..c7cdb78 --- /dev/null +++ b/terminaldweller.com/main/srv/.well-known/webfinger/finger.json @@ -0,0 +1 @@ +{"subject":"acct:terminaldweller@fosstodon.org","aliases":["https://fosstodon.org/@terminaldweller","https://fosstodon.org/users/terminaldweller"],"links":[{"rel":"http://webfinger.net/rel/profile-page","type":"text/html","href":"https://fosstodon.org/@terminaldweller"},{"rel":"self","type":"application/activity+json","href":"https://fosstodon.org/users/terminaldweller"},{"rel":"http://ostatus.org/schema/1.0/subscribe","template":"https://fosstodon.org/authorize_interaction?uri={uri}"}]}
\ No newline at end of file |