项目作者: mattrude

项目描述 :
A simple OpenPGP Web Key Directory (WKD) Service website.
高级语言: HTML
项目地址: git://github.com/mattrude/wkd-website.git
创建时间: 2019-08-05T03:52:04Z
项目社区:https://github.com/mattrude/wkd-website

开源协议:MIT License

下载


OpenPGP Web Key Directory Service Website

This is my Web Key Directory Service (WKD) website. This project is intended to display a small page if a user happens to go to the WKD “advanced method” url (ie. https://openpgpkey.mattrude.com) explaining what the service is and how to access more infromation about WKD.

This site is already build and only needs to be placed into the web directory for your openpgpkey site. This page auto corrects the site domain when the site loads, via javascript, only the Contact link requires updating. All images are imbeaded into the index.html file.

Please remember to update the Contact link.

Nginx Config

This site is intended to serve multiple sites at the same time from the same directory. You may either create a new nginx config file per site, or add all the sites to the same file. The below example assumes the root web directory on your webserver is /var/www/openpgpkey.

  1. #----------------------------------------------------------------------
  2. # openpgpkey.example.com
  3. #----------------------------------------------------------------------
  4. server {
  5. listen 80;
  6. listen [::]:80;
  7. server_name openpgpkey.example.com;
  8. location '/.well-known/acme-challenge' {
  9. default_type "text/plain";
  10. root /var/www/openpgpkey;
  11. }
  12. location / {
  13. return 301 https://$server_name$request_uri;
  14. }
  15. }
  16. server {
  17. listen 443 ssl http2;
  18. listen [::]:443 ssl http2;
  19. server_name openpgpkey.example.com;
  20. root /var/www/openpgpkey;
  21. ssl_certificate /etc/letsencrypt/live/openpgpkey.example.com/fullchain.pem;
  22. ssl_certificate_key /etc/letsencrypt/live/openpgpkey.example.com/privkey.pem;
  23. ssl_stapling on;
  24. error_page 404 /index.html;
  25. location ^~ /.well-known/ {
  26. expires 5d;
  27. default_type "text/plain";
  28. add_header 'Access-Control-Allow-Origin' '*' always;
  29. }
  30. location ^~/.git { return 404; }
  31. location ^~/.gitignore { return 404; }
  32. location ^~/LICENSE { return 404; }
  33. location ^~/README.md { return 404; }
  34. }

Repository License

  1. MIT License
  2. Copyright (c) 2020 Matt Rude <matt@mattrude.com>
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in all
  10. copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.