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
|
||||
|
||||
Build and check for changes:
|
||||
|
||||
```shell
|
||||
ssh <container>
|
||||
cd /etc/nixos
|
||||
nix run .#apps.nixos-diff # Show what changes would be applied
|
||||
nixos-rebuild switch # Apply changes
|
||||
nix run .#remote-diff-git
|
||||
```
|
||||
|
||||
Build and apply:
|
||||
|
||||
```shell
|
||||
nix run .#remote-apply-git
|
||||
```
|
||||
|
||||
### Special things
|
||||
|
|
|
|||
|
|
@ -75,7 +75,8 @@ in
|
|||
|
||||
nginx = {
|
||||
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}" = {
|
||||
quic = true;
|
||||
|
|
@ -106,6 +107,8 @@ in
|
|||
};
|
||||
"~ ^/[^/]+/[^/]+/archive/".extraConfig = ''
|
||||
limit_req zone=forgejo_archive burst=10 nodelay;
|
||||
limit_conn forgejo_archive_conn 2;
|
||||
limit_req_status 429;
|
||||
'';
|
||||
"= /robots.txt".extraConfig = ''
|
||||
default_type text/plain;
|
||||
|
|
|
|||
Loading…
Reference in a new issue