   ssl on;
   ssl_certificate     /etc/certs/emajliramokade.com.crt;
   ssl_certificate_key /etc/certs/emajliramokade.com.key;
-  
+
   client_max_body_size 10M;
-  
+
   ssl_stapling on;
   resolver 8.8.8.8;
   ssl_verify_depth 1;


  access_log /var/www/ekade/logs/nginx/static-access.log combined buffer=32k;
  error_log  /var/www/ekade/logs/nginx/static-error.log;
  
  location ~ ^/email/[^/]+/.*\.jpe?g$ {
    rewrite ^/email/([^/]+)/.* /public/Slike/$1/Email break;
    proxy_pass http://127.0.0.1:6081;
    proxy_set_header REMOTE_ADDR $remote_addr;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header HOST $host;
  }
  
  location ~ ^/thumbnail/[^/]+/.*\.jpe?g$ {
    rewrite ^/thumbnail/([^/]+)/.* /public/Slike/$1/Thumbnail break;
    proxy_pass http://127.0.0.1:6081;
    proxy_set_header REMOTE_ADDR $remote_addr;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header HOST $host;
  }
  
  location ~ ^/web/[^/]+/.*\.jpe?g$ {
    rewrite ^/web/([^/]+)/.* /public/Slike/$1/Web break;
    proxy_pass http://127.0.0.1:6081;
    proxy_set_header REMOTE_ADDR $remote_addr;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header HOST $host;
  }
  
  location ~ ^/kade/.* {
    root /var/www/ekade;
    expires 30d;

  ssl on;
  ssl_certificate     /etc/certs/emajliramokade.com.crt;
  ssl_certificate_key /etc/certs/emajliramokade.com.key;

  client_max_body_size 10M;

  ssl_stapling on;
  resolver 8.8.8.8;
  ssl_verify_depth 1;
