mirror of
https://github.com/Noratrieb/vps.git
synced 2026-03-16 14:16:08 +01:00
Compare commits
2 commits
1e4973049f
...
72bd7972da
| Author | SHA1 | Date | |
|---|---|---|---|
| 72bd7972da | |||
| b382e5b232 |
3 changed files with 13 additions and 2 deletions
|
|
@ -10,6 +10,15 @@ in
|
||||||
"does-it-build.noratrieb.dev" = {
|
"does-it-build.noratrieb.dev" = {
|
||||||
logFormat = "";
|
logFormat = "";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
@blocked {
|
||||||
|
header User-Agent *SemrushBot*
|
||||||
|
header User-Agent *AhrefsBot*
|
||||||
|
header User-Agent *Amazonbot*
|
||||||
|
header User-Agent *openai.com*
|
||||||
|
}
|
||||||
|
|
||||||
|
respond @blocked "get fucked" 418
|
||||||
|
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:3000
|
reverse_proxy * localhost:3000
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
let
|
let
|
||||||
caddy = pkgs.caddy.withPlugins {
|
caddy = pkgs.caddy.withPlugins {
|
||||||
plugins = [
|
plugins = [
|
||||||
"github.com/noratrieb-mirrors/certmagic-s3@v1.0.0"
|
"github.com/noratrieb-mirrors/certmagic-s3@v1.1.3"
|
||||||
];
|
];
|
||||||
hash = "sha256-O1SK13hacEkuSpWLhSdq+hu18Bi6+DqYUPu0lzBpvIE=";
|
hash = "sha256-HdCXbqrrGPZSdHv7bZvGz9T6loVbrfKydTbjTyt5Wt0=";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ in
|
||||||
{
|
{
|
||||||
deployment.targetHost = "${name}.infra.noratrieb.dev";
|
deployment.targetHost = "${name}.infra.noratrieb.dev";
|
||||||
|
|
||||||
|
# TODO: ensure that the rust programs have frame pointers
|
||||||
|
|
||||||
networking.hosts = {
|
networking.hosts = {
|
||||||
"${networkingConfig.vps3.wg.privateIP}" = [ "loki.internal" "pyroscope.internal" "prometheus.internal" ];
|
"${networkingConfig.vps3.wg.privateIP}" = [ "loki.internal" "pyroscope.internal" "prometheus.internal" ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue