forked from Mirrors/keyoxide-web
Allow custom domain
This commit is contained in:
parent
2a98e94824
commit
22dda3f327
5 changed files with 9 additions and 3 deletions
|
@ -14,7 +14,7 @@ If you already have a public key (or its fingerprint) you would like to use to e
|
|||
|
||||
## Encrypt a message
|
||||
|
||||
Open the [keyoxide.org/encrypt](/encrypt) page and paste the fingerprint in the **Email / key id / fingerprint** field.
|
||||
Open the [/encrypt](/encrypt) page and paste the fingerprint in the **Email / key id / fingerprint** field.
|
||||
|
||||
Write a message in the **Message** field. Scroll down and press the **ENCRYPT MESSAGE** button.
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ Copy the above signature.
|
|||
|
||||
## Verify the signature
|
||||
|
||||
Open the [keyoxide.org/verify](/verify) page and paste the signature in the corresponding field. Scroll down and press the **VERIFY SIGNATURE** button.
|
||||
Open the [/verify](/verify) page and paste the signature in the corresponding field. Scroll down and press the **VERIFY SIGNATURE** button.
|
||||
|
||||
Keyoxide lets you know the signature was verified and signed by a certain person.
|
||||
|
||||
|
|
1
index.js
1
index.js
|
@ -41,6 +41,7 @@ md.use(require('markdown-it-title'));
|
|||
|
||||
app.set('view engine', 'pug');
|
||||
app.set('port', process.env.PORT || 3000);
|
||||
app.set('domain', process.env.DOMAIN || "keyoxide.org");
|
||||
|
||||
app.use('/favicon.svg', express.static('favicon.svg'));
|
||||
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
# Defaults to: 3000
|
||||
#PORT=
|
||||
|
||||
# Domain of Keyoxide instance
|
||||
# Defaults to: keyoxide.org
|
||||
#PORT=
|
||||
|
||||
# Domain for XMPP vCard fetch server
|
||||
# Code for the server can be found here https://codeberg.org/keyoxide/node-xmpp-vcard
|
||||
# Defaults to: "xmpp-vcard.keyoxide.org"
|
||||
|
@ -10,4 +14,5 @@
|
|||
# Twitter API bearer code
|
||||
# Documentation: https://developer.twitter.com/en/docs/basics/authentication/oauth-2-0
|
||||
# Expected format: "XXXXXXXXXXXXXXXXXXXXX"
|
||||
# If none is provided (default), Twitter accounts are not verified
|
||||
#TWITTER_API_AUTH=
|
||||
|
|
|
@ -93,7 +93,7 @@ block content
|
|||
| Can I get a sweet profile page?
|
||||
p
|
||||
| That, we can help you with! Just append your fingerprint to the domain (like so:
|
||||
a(href='/9F0048AC0B23301E1F77E994909F6BD6F80F485D') https://keyoxide.org/9F0048AC0B23301E1F77E994909F6BD6F80F485D
|
||||
a(href=`https:/${settings.domain}/9F0048AC0B23301E1F77E994909F6BD6F80F485D`) https://#{settings.domain}/9f0048ac0b23301e1f77e994909f6bd6f80f485d
|
||||
| ) to generate a profile page.
|
||||
h3#where-is-the-app
|
||||
a(href='#where-is-the-app') #
|
||||
|
|
Loading…
Reference in a new issue