This commit is contained in:
parent
1de27b472a
commit
84abaee8ed
2 changed files with 13 additions and 5 deletions
13
README.md
13
README.md
|
|
@ -12,11 +12,16 @@
|
||||||
|
|
||||||
### Update a container
|
### Update a container
|
||||||
|
|
||||||
|
Build and check for changes:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
ssh <container>
|
nix run .#remote-diff-git
|
||||||
cd /etc/nixos
|
```
|
||||||
nix run .#apps.nixos-diff # Show what changes would be applied
|
|
||||||
nixos-rebuild switch # Apply changes
|
Build and apply:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nix run .#remote-apply-git
|
||||||
```
|
```
|
||||||
|
|
||||||
### Special things
|
### Special things
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,8 @@ in
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
appendHttpConfig = ''
|
appendHttpConfig = ''
|
||||||
limit_req_zone $binary_remote_addr zone=forgejo_archive:10m rate=2r/s;
|
limit_req_zone $binary_remote_addr zone=forgejo_archive:10m rate=10r/m;
|
||||||
|
limit_conn_zone $binary_remote_addr zone=forgejo_archive_conn:10m;
|
||||||
'';
|
'';
|
||||||
virtualHosts."${fqdn}" = {
|
virtualHosts."${fqdn}" = {
|
||||||
quic = true;
|
quic = true;
|
||||||
|
|
@ -106,6 +107,8 @@ in
|
||||||
};
|
};
|
||||||
"~ ^/[^/]+/[^/]+/archive/".extraConfig = ''
|
"~ ^/[^/]+/[^/]+/archive/".extraConfig = ''
|
||||||
limit_req zone=forgejo_archive burst=10 nodelay;
|
limit_req zone=forgejo_archive burst=10 nodelay;
|
||||||
|
limit_conn forgejo_archive_conn 2;
|
||||||
|
limit_req_status 429;
|
||||||
'';
|
'';
|
||||||
"= /robots.txt".extraConfig = ''
|
"= /robots.txt".extraConfig = ''
|
||||||
default_type text/plain;
|
default_type text/plain;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue