Deny remote access to local domains
This commit is contained in:
parent
cbb672fe74
commit
43aed3e6b7
|
@ -23,9 +23,17 @@
|
||||||
-Server
|
-Server
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@local {
|
||||||
|
remote_ip 192.168.0.0/16
|
||||||
|
}
|
||||||
|
|
||||||
|
handle @local {
|
||||||
reverse_proxy ipfs_kubo:5001
|
reverse_proxy ipfs_kubo:5001
|
||||||
}
|
}
|
||||||
|
|
||||||
|
respond 403
|
||||||
|
}
|
||||||
|
|
||||||
{{ services.ipfs.gateway_domain }},
|
{{ services.ipfs.gateway_domain }},
|
||||||
*.ipfs.{{ services.ipfs.gateway_domain }},
|
*.ipfs.{{ services.ipfs.gateway_domain }},
|
||||||
*.ipns.{{ services.ipfs.gateway_domain }} {
|
*.ipns.{{ services.ipfs.gateway_domain }} {
|
||||||
|
@ -76,5 +84,13 @@
|
||||||
-Server
|
-Server
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@local {
|
||||||
|
remote_ip 192.168.0.0/16
|
||||||
|
}
|
||||||
|
|
||||||
|
handle @local {
|
||||||
reverse_proxy pihole:80
|
reverse_proxy pihole:80
|
||||||
}
|
}
|
||||||
|
|
||||||
|
respond 403
|
||||||
|
}
|
||||||
|
|
Reference in a new issue