-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Security.txt file and add some missing routes
Signed-off-by: Austin Hadley <[email protected]>
- Loading branch information
1 parent
57e6773
commit 36cb1dd
Showing
5 changed files
with
94 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,15 +106,36 @@ async fn google_callback(token: TokenResponse<Google>, cookies: &CookieJar<'_>) | |
Redirect::to("/events") | ||
} | ||
|
||
#[get("/robots.txt")] | ||
async fn robots() -> Option<NamedFile> { | ||
NamedFile::open("static/robots.txt").await.ok() | ||
} | ||
|
||
#[get("/sitemap.xml")] | ||
async fn sitemap() -> Option<NamedFile> { | ||
NamedFile::open("static/sitemap.xml").await.ok() | ||
} | ||
|
||
#[get("/security.txt")] | ||
async fn security() -> Option<NamedFile> { | ||
NamedFile::open("static/.well-known/security.txt").await.ok() | ||
} | ||
|
||
#[get("/pgp-key.txt")] | ||
async fn pgp_key() -> Option<NamedFile> { | ||
NamedFile::open("static/.well-known/pgp-key.txt").await.ok() | ||
} | ||
|
||
#[rocket::main] | ||
async fn main() { | ||
let mut allowedEmails: Vec<String> = vec!["[email protected]".to_string(), "[email protected]".to_string(), "[email protected]".to_string()]; | ||
let allowedEmails: Vec<String> = vec!["[email protected]".to_string(), "[email protected]".to_string(), "[email protected]".to_string()]; | ||
|
||
let _ = rocket::build() | ||
.mount("/", routes![index, favicon, events]) | ||
.mount("/", routes![index, favicon, events, robots, sitemap, pgp_key]) | ||
.mount("/css/", routes![styles, events_css, auth_css]) | ||
.mount("/js/", routes![main_js, navbar_js, auth_js]) | ||
.mount("/images", routes![covered_bridge]) | ||
.mount("/.well-known", routes![security, pgp_key]) | ||
.mount( | ||
"/auth", | ||
routes![ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
Comment: User-ID: Ashland Area Amateur Raio Club Temp <[email protected]> | ||
Comment: Valid from: 2/16/2024 7:49 AM | ||
Comment: Valid until: 2/16/2025 12:00 PM | ||
Comment: Type: 521-bit ECDSA (secret key available) | ||
Comment: Usage: Signing, Encryption, Certifying User-IDs, SSH Authentication | ||
Comment: Fingerprint: 438626C92A9190A269CBA21C2E6AF914B71A4755 | ||
|
||
|
||
mJMEZc9ZyhMFK4EEACMEIwQBqR7UljmK9HVVHkKRvNSBDhVkWw/r6qq5FmRU91lb | ||
fLPAaOC3BaRx1xF7Egdmgwi1V1SE/K+6/R3m2ZUseY/EAocA4ax4tofmzEvnw/XY | ||
zcmPPECWuyXAi929j3JHrtGYAU9VTiHykj59rXoGIAc7iB8SGCT/RT5weVt8H1Bn | ||
SoSaqR+0N0FzaGxhbmQgQXJlYSBBbWF0ZXVyIFJhaW8gQ2x1YiBUZW1wIDxhZG1p | ||
bkBhdXN0aW5oLmRldj6I3AQTEwoAQRYhBEOGJskqkZCiacuiHC5q+RS3GkdVBQJl | ||
z1nKAhsjBQkB4r/GBQsJCAcCAiICBhUKCQgLAgQWAgMBAh4HAheAAAoJEC5q+RS3 | ||
GkdVLn0CCOOQi37eZDzlm0pXPq5I9LJSOpnIZpll+rUY3bKiAK7Oj0G6zXnpY99H | ||
kzriNYEe3S3jVWmI4mBHitqvKLn505cjAgkBfo3WGNsWFkdLL1p/hacZvPMVDtgZ | ||
J33F/g4xezXvVITLOnntOXW4f0wbUMUlapeKg0kurcCO7bxJwV7G6oS4dvW4lwRl | ||
z1nKEgUrgQQAIwQjBAC50I5kJJp11uT+jEVm7bWA2emTO+1rsvx6t6sgA89KdX0K | ||
qEaI1daJ8caoquHMF6jTF1qMCJji63s3/BI0F7F1TAA0i59p/NgNpN+yxmyzSbgb | ||
NH7TD3JxVCoBFeBvKbJPteAhJFSVn0UCSKxZRjPvS0cUlFlxTmyTWBFyzd8G0U/C | ||
+wMBCgmIwQQYEwoAJhYhBEOGJskqkZCiacuiHC5q+RS3GkdVBQJlz1nKAhsMBQkB | ||
4r/GAAoJEC5q+RS3GkdVTfsCCQHc4hFuFxZJXtyMSn6leAwZPWlKwp5OI2ukBH5V | ||
fvH5s2P+kuxQsFHpXLfv7lYPezAfC8Hsl/2avwCYIjH5wuJ7sAIECMbQY+oHfpu9 | ||
tIS2eXn4oUL0ooOe8KRS1KAVUj+ipL89ACT5tbvBvKroElmrdyixtNsB2ARCqCrN | ||
9f0iTb6eVes= | ||
=QnPj | ||
-----END PGP PUBLIC KEY BLOCK----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-----BEGIN PGP SIGNED MESSAGE----- | ||
Hash: SHA512 | ||
|
||
Contact: mailto:[email protected] | ||
Expires: 2025-02-16T05:00:00.000Z | ||
Encryption: https://aaarc.austinh.dev/pgp-key.txt | ||
Acknowledgments: https://aaarc.austinh.dev/hall-of-fame.html | ||
Preferred-Languages: en | ||
Canonical: httpd://aaarc.austinh.dev/.well-known/security.txt | ||
Canonical: httpd://aaarc.austinh.dev/security.txt | ||
-----BEGIN PGP SIGNATURE----- | ||
|
||
iLkEARMKAB0WIQRDhibJKpGQomnLohwuavkUtxpHVQUCZc9bYAAKCRAuavkUtxpH | ||
VfXZAgkB6y6RROgA+ZphV888YPcN5No7RIFokZQ7nh3m4479IJ3NPC3wXiVwwymP | ||
sWk/YVWX3MHWxusfcbOzihrqMMSsBioCCQGbLJIxNSu8H89+2ZbPWH5OlFs9FuIN | ||
MprZ99/yN3A1J0TTd/bEerBzpC/rxL0PWbS4QpUJO23yWfAkOfqi7Q2H6A== | ||
=uAoi | ||
-----END PGP SIGNATURE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
User-agent: Teoma | ||
Disallow: / | ||
User-agent: Gigabot | ||
Disallow: / | ||
User-agent: Nutch | ||
Disallow: / | ||
User-agent: psbot | ||
Disallow: / | ||
User-agent: * | ||
Disallow: | ||
Crawl-delay: 5 | ||
Disallow: /cgi-bin/ | ||
Disallow: /admin/ | ||
Sitemap: https://aaarc.austinh.dev/sitemap.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters