Housekeeping + tweaks
parent
310a19bca5
commit
1ab39851ef
|
@ -26,11 +26,10 @@ favicon = "/image/favicon.svg"
|
||||||
stylesheets = []
|
stylesheets = []
|
||||||
|
|
||||||
use_cdn = false
|
use_cdn = false
|
||||||
# include hashes for SRI
|
|
||||||
cdns = [
|
cdns = [
|
||||||
{ url = "https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.min.css", hash = "sWIpcFPnJFfPqQU7FWn8H9+Xax/h5ihI8hVjQTBa5WmUde6CZZLw9DUAaIyA6j5u" },
|
# { url = "https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.min.css", hash = "sWIpcFPnJFfPqQU7FWn8H9+Xax/h5ihI8hVjQTBa5WmUde6CZZLw9DUAaIyA6j5u" },
|
||||||
{ url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/static/pretendard-std-dynamic-subset.min.css", hash = "UzN3sOqBetZN9G2CDFfxg1PNJ+Qrv8/HZIoBp6XsCD+2DOehpvXGqkj2WFCNge5Q" },
|
# { url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/static/pretendard-std-dynamic-subset.min.css", hash = "UzN3sOqBetZN9G2CDFfxg1PNJ+Qrv8/HZIoBp6XsCD+2DOehpvXGqkj2WFCNge5Q" },
|
||||||
{ url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Webfonts/index.min.css", hash = "Vx6OU3QBwm96rTUebUtdfD/AW3d3uzT896pixaUYg9Nb87zqHuXmjmv9aGwBmFjP" },
|
# { url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Webfonts/index.min.css", hash = "Vx6OU3QBwm96rTUebUtdfD/AW3d3uzT896pixaUYg9Nb87zqHuXmjmv9aGwBmFjP" },
|
||||||
# Disabling variable fonts to bring site weight down
|
# Disabling variable fonts to bring site weight down
|
||||||
# { url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/variable/pretendardvariable-std.min.css", hash = "3OYJp8uUv2MJWyKGgrZOrSjf+WP+nD7ifpJ04kAsI02PYi+nghC4TF37YkN/2Qxt" },
|
# { url = "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.5/dist/web/variable/pretendardvariable-std.min.css", hash = "3OYJp8uUv2MJWyKGgrZOrSjf+WP+nD7ifpJ04kAsI02PYi+nghC4TF37YkN/2Qxt" },
|
||||||
# { url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Variable/index.min.css", hash = "sFJyxW2UhZcJ0SAweDcoU6dBgqox5PbLK5nZStQSQitBeRHigPu7OPWDvoIHEXeo" },
|
# { url = "https://cdn.jsdelivr.net/gh/codex-src/iA-Fonts@master/iA%20Writer%20Quattro/Variable/index.min.css", hash = "sFJyxW2UhZcJ0SAweDcoU6dBgqox5PbLK5nZStQSQitBeRHigPu7OPWDvoIHEXeo" },
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
+++
|
+++
|
||||||
title = "diy code hosting with gitea and fly.io"
|
title = "diy code hosting with gitea and fly.io"
|
||||||
date = "2022-08-07"
|
date = "2022-08-07"
|
||||||
updated = "2022-08-21"
|
updated = "2022-09-04"
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tags = ["git", "gitea", "fly.io"]
|
tags = ["git", "gitea", "fly.io"]
|
||||||
+++
|
+++
|
||||||
|
@ -180,6 +180,11 @@ That doesn't look so great. It seems like Gitea idles just under the amount of m
|
||||||
<figcaption><h4>Fly.io VM scaling interface</h4></figcaption>
|
<figcaption><h4>Fly.io VM scaling interface</h4></figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
|
You can also use `flyctl` to scale your app!
|
||||||
|
```bash
|
||||||
|
flyctl scale memory 512
|
||||||
|
```
|
||||||
|
|
||||||
I have been running my Gitea install on a 512MB instance since the first day I started using it, which seems to be plenty of headroom for personal use. If you open up your Gitea installation to the public and it starts to get popular, you might end up needing to scale up further.
|
I have been running my Gitea install on a 512MB instance since the first day I started using it, which seems to be plenty of headroom for personal use. If you open up your Gitea installation to the public and it starts to get popular, you might end up needing to scale up further.
|
||||||
|
|
||||||
It's worth noting that scaling up to 512 MB means you will start accruing a Fly.io balance, but so far this has never been more than a $2 monthly bill for me. If that's too steep for you, consider that Fly.io doesn't (at the time of this writing) charge for monthly bills below $5, or else check out some of the competing PaaS options out there.
|
It's worth noting that scaling up to 512 MB means you will start accruing a Fly.io balance, but so far this has never been more than a $2 monthly bill for me. If that's too steep for you, consider that Fly.io doesn't (at the time of this writing) charge for monthly bills below $5, or else check out some of the competing PaaS options out there.
|
||||||
|
|
|
@ -211,7 +211,7 @@ index.html main.css ...
|
||||||
```
|
```
|
||||||
|
|
||||||
## Serving: Caddy
|
## Serving: Caddy
|
||||||
We can reliably build our site, but now we need a way serve that onto the blagoblag. Let's use Caddy! The syntax is marginally less arcane than Apache or Nginx, and it has cool features like HTTPS-by-default!
|
We can reliably build our site, but now we need a way serve that onto the [blagoblag](https://xkcd.com/181/). Let's use Caddy! The syntax is marginally less arcane than Apache or Nginx, and it has cool features like HTTPS-by-default!
|
||||||
|
|
||||||
Unfortunately, the first thing we're going to have to do in our `Caddyfile` is turn that off:
|
Unfortunately, the first thing we're going to have to do in our `Caddyfile` is turn that off:
|
||||||
```Caddyfile
|
```Caddyfile
|
||||||
|
|
|
@ -4,13 +4,9 @@ path = "projects"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
## gemini for rust
|
## gemini for rust
|
||||||
|
|
||||||
`gemini` is a rust crate providing a small set of types useful for working with the Gemini protocol
|
`gemini` is a rust crate providing a small set of types useful for working with the Gemini protocol
|
||||||
|
- [`gemini` on crates.io](https://crates.io/crates/gemini)
|
||||||
[`gemini` on crates.io](https://crates.io/crates/gemini)
|
- [`gemini` source on the pijul nest](https://nest.pijul.com/mat/gemini-projects:main/5II6T7YETYWUI.BEAAA)
|
||||||
|
|
||||||
[`gemini` source on the pijul nest](https://nest.pijul.com/mat/gemini-projects:main/5II6T7YETYWUI.BEAAA)
|
|
||||||
|
|
||||||
## other projects
|
## other projects
|
||||||
|
|
||||||
i am in the process of moving my active git-managed projects to a ["self"-hosted gitea instance](https://git.mat.services/mat), but currently some of my projects still live on [github](https://github.com/matthewess) or [gitlab](https://gitlab.com/matthewess). i occasionally work on projects using [pijul](https://pijul.org), which can be found on [the pijul nest](https://nest.pijul.com/mat).
|
i am in the process of moving my active git-managed projects to a ["self"-hosted gitea instance](https://git.mat.services/mat), but currently some of my projects still live on [github](https://github.com/matthewess) or [gitlab](https://gitlab.com/matthewess). i occasionally work on projects using [pijul](https://pijul.org), which can be found on [the pijul nest](https://nest.pijul.com/mat).
|
||||||
|
|
Loading…
Reference in New Issue