mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
events {}
|
|
http {
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
root /var/www/vhosts/gsevpt.de;
|
|
server_name _;
|
|
|
|
location ^~ /image/ {
|
|
root "/var/www/vhosts/gsevpt.de/cache/img";
|
|
expires 1h;
|
|
|
|
location ~ ^/image/(?<id>[0-9]+)/(?<hash>[0-9]+) {
|
|
if ($arg_s = '') {
|
|
rewrite (.*) $1?s=500 last;
|
|
}
|
|
try_files /${id}-${hash}-${arg_s}-${arg_s}.png /${id}-${hash}-${arg_s}-${arg_s}.jpg @docker;
|
|
}
|
|
|
|
location ~ ^/image/(?<id>[0-9]+) {
|
|
if ($arg_s = '') {
|
|
rewrite (.*) $1?s=500 last;
|
|
}
|
|
try_files /${id}-${arg_s}-${arg_s}.png /${id}-${arg_s}-${arg_s}.jpg @docker;
|
|
}
|
|
}
|
|
location ^~ /static/ {
|
|
root "/var/www/vhosts/gsevpt.de/";
|
|
|
|
location ~ ^/static/(.*)$ {
|
|
try_files /static-custom/$1 /static/$1 @docker;
|
|
}
|
|
}
|
|
location ^~ /dump/ {
|
|
alias "/var/www/vhosts/gsevpt.de/cache/dump/";
|
|
}
|
|
location ^~ /sitemap.xml {
|
|
alias "/var/www/vhosts/gsevpt.de/cache/sitemap.xml";
|
|
}
|
|
location ^~ /robots.txt {
|
|
alias "/var/www/vhosts/gsevpt.de/cache/robots.txt";
|
|
}
|
|
location ^~ /favicon.ico {
|
|
alias "/var/www/vhosts/gsevpt.de/static/favicon.ico";
|
|
expires 12h;
|
|
}
|
|
location @docker {
|
|
proxy_pass http://0.0.0.0:5000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|
|
} |