From ab88991b2a632d6b7fb13891b6876dcfa9851973 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 18 Dec 2022 18:22:05 +0330 Subject: update --- .mutt/mailcap | 1 + terminaldweller.com/ejabberd/docker-compose.yaml | 4 ++-- terminaldweller.com/main/nginx.conf | 10 +++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.mutt/mailcap b/.mutt/mailcap index c0f0cd0..8ea5205 100644 --- a/.mutt/mailcap +++ b/.mutt/mailcap @@ -1,3 +1,4 @@ #text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput #text/html; beautiful_html_render %s; nametemplate=%s.html; copiousoutput; text/html; w3m -I %{charset} -T text/html; copiousoutput; +application/vnd.gnupg.wks; gpg-wks-client -v --read --send; needsterminal; description=WKS message diff --git a/terminaldweller.com/ejabberd/docker-compose.yaml b/terminaldweller.com/ejabberd/docker-compose.yaml index 3ba143a..a4ddaeb 100644 --- a/terminaldweller.com/ejabberd/docker-compose.yaml +++ b/terminaldweller.com/ejabberd/docker-compose.yaml @@ -8,7 +8,7 @@ services: #- "80:80" - "5222:5222" - "5223:5223" - #- "5269:5269" + - "5269:5269" - "5280:5280" - "5443:5443" #- "1883:1883" @@ -33,5 +33,5 @@ volumes: mnesia_db: vault: # openssl dhparam -out dhparams.pem 4096 -# certbot certonly --standlone -d chat.terminaldweller.com -m devi@terminaldweller.com --agree-tos --noninteractive +# certbot certonly --standalone -d chat.terminaldweller.com -m devi@terminaldweller.com --agree-tos --noninteractive --dryrun # docker exec -it 6eebd16a2385 bin/ejabberdctl register admin chat.terminaldweller.com password diff --git a/terminaldweller.com/main/nginx.conf b/terminaldweller.com/main/nginx.conf index 4007cca..db1404d 100644 --- a/terminaldweller.com/main/nginx.conf +++ b/terminaldweller.com/main/nginx.conf @@ -1,7 +1,6 @@ events { worker_connections 1024; } -# curl https://fosstodon.org/.well-known/webfinger?resource=acct:terminaldweller@fosstodon.org http { server { listen 8080 ssl http2; @@ -20,11 +19,20 @@ http { sendfile on; tcp_nopush on; + # curl https://fosstodon.org/.well-known/webfinger?resource=acct:terminaldweller@fosstodon.org 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? + location /.well-known/openpgpkey/hu/ojxfrmdxrz4pm3hh16s5149w5b8acbsn { + alias /srv/.well-known/openpgpkey/hu/gpg_pubkey.asc; + add_header Access-Control-Allow-Origin "*"; + } + location /.well-known/openpgpkey/policy { + alias /srv/.well-known/openpgpkey/policy; + add_header Access-Control-Allow-Origin "*"; + } } } -- cgit v1.2.3