mirror of
https://github.com/archtechx/nix.git
synced 2025-12-12 19:34:04 +00:00
Add realip.nix
This commit is contained in:
parent
bc8ad1fd71
commit
ecf65b125d
2 changed files with 27 additions and 0 deletions
|
|
@ -269,6 +269,13 @@ However a more proper solution is to use the `real_ip` module in common nginx co
|
|||
we can follow the [guide from the NixOS
|
||||
wiki](https://nixos.wiki/wiki/Nginx#Using_realIP_when_behind_CloudFlare_or_other_CDN).
|
||||
|
||||
> [!NOTE]
|
||||
> You can also use the `realip.nix` module here (which wraps the code below):
|
||||
>
|
||||
> `scp realip.nix root@<server ip>:/etc/nixos/`
|
||||
>
|
||||
> Then just add `./realip.nix` to your modules array.
|
||||
|
||||
```nix
|
||||
# New module in your modules array
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue