Merge pull request #869 from thoughever/reverse_proxy

X-Real-IP support and Varnish PURGE config options
This commit is contained in:
Shish
2022-05-01 10:42:54 +01:00
committed by GitHub
20 changed files with 71 additions and 28 deletions

View File

@@ -389,7 +389,7 @@ class Image
:posted, :source
)",
[
"owner_id" => $user->id, "owner_ip" => $_SERVER['REMOTE_ADDR'],
"owner_id" => $user->id, "owner_ip" => get_real_ip(),
"filename" => $cut_name, "filesize" => $this->filesize,
"hash" => $this->hash, "mime" => strtolower($this->mime),
"ext" => strtolower($this->ext),