Exploit.cz

Exploit.cz

Thoughts, stories and ideas about Symfony, PHP, AWS, Docker, Kubernetes

How to set REMOTE_ADDR from HTTP_X_ORIGINAL_FORWARDED_FOR header when going through EZOIC proxy cache
kubernetes

How to set REMOTE_ADDR from HTTP_X_ORIGINAL_FORWARDED_FOR header when going through EZOIC proxy cache

Prerequisites: * kubernetes ingress * your varnish proxy cache * Symfony PHP application 1. Edit your global Kubernetes Ingress Config Map in namespace ingress-nginx named nginx-configuration [https://rancher2.exploit.cz/p/local:p-mt7fw/config-maps/ingress-nginx:nginx-configuration] and add use-forwarded-headers: true 2. In your Varnish proxy in section sub vcl_recvadd if (req.http.
— 1 min read
How to Auto Scroll in long Autocomplete list when keyPress Up and Down
javascript

How to Auto Scroll in long Autocomplete list when keyPress Up and Down

You have to add attribute tabindex="-1" and set .focus() on active element. Look at my patch here https://github.com/ashokvishwakarma/preact-typeahead/commit/2dc53c3c5abc37b1a0428889917608a4a0740123 autofocus to selected element · ashokvishwakarma/preact-typeahead@2dc53c3A TypeHead component for Preact. Contribute to ashokvishwakarma/preact-typeahead development by creating an account on GitHub.GitHubashokvishwakarma
— 1 min read
Jak udělat z neprodejnĂ© nemovitosti voƈavĂ© hnĂ­zdečko lĂĄsky - ExekučnĂ­ draĆŸba RD Oslavany
reality

Jak udělat z neprodejnĂ© nemovitosti voƈavĂ© hnĂ­zdečko lĂĄsky - ExekučnĂ­ draĆŸba RD Oslavany

Prodej rodinnĂ©ho domu 3+1 v Oslavanech. CelkovĂĄ plocha 475 m2. ƘadovĂœ rodinnĂœ dĆŻm s garĂĄĆŸĂ­, pƙedzahrĂĄdkou 73 m2 a uzavƙenĂœm dvorem. Za domem se nachĂĄzĂ­ terasovitĂĄ zahrada o vĂœměƙe 181 m2 a sklep. DĆŻm je po rekonstrukci (novĂ© rozvody, okna, dveƙe, garĂĄĆŸovĂĄ vrata, podlahy, novĂĄ koupelna, novĂĄ kuchyƈskĂĄ linka
— 2 min read
How to autoreload Varnish Cache backends when Kubernetes Deployment changed
kubernetes

How to autoreload Varnish Cache backends when Kubernetes Deployment changed

You can use quay.io/spaces/kube-httpcache:stable - Github README [https://github.com/mittwald/kube-httpcache/blob/master/README.md] Necessary configuration when RBAC is enabled: * create ServiceAccount: kubectl --kubeconfig kube_config_cluster.yml -n web create serviceaccount varnish-watcher * create ClusterRole + ClusterRoleBinding: kubectl --kubeconfig kube_config_cluster.yml apply -f
— 2 min read
Co má dělat OSVČ neplátce DPH v roce 2019 pokud jde na pracák
osvč

Co má dělat OSVČ neplátce DPH v roce 2019 pokud jde na pracák

> JĂ­t na Ășƙad prĂĄce nenĂ­ nic poniĆŸujĂ­cĂ­ho, jednou do systĂ©mu odvĂĄdĂ­te penĂ­ze, takĆŸe mĂĄte i nĂĄrok na jejich čerpĂĄnĂ­ formou podpory v nezaměstnanosti. JedinĂĄ podmĂ­nka pro moĆŸnost čerpĂĄnĂ­ je mĂ­t odpracovĂĄno alespoƈ 12 měsĂ­cĆŻ za poslednĂ­ 2 roky. MĂĄte hodně zakĂĄzek a cĂ­tĂ­te syndrom vyhoƙenĂ­, moĆŸnĂĄ pro vĂĄs bude
— 4 min read