You’re here because you’d like to know the nginx.conf or rather the vhost conf for nginx in order to serve an Angular dev app on your local host. Angular listens on port 4200 with ng serve. In my case I have a keycloak-proxy listening on port 8080. And my api is on /api/v1/ . My…
Read ArticleCategory: Allgemein
keycloak: upstream sent too big header while reading response header from upstream
The relevant bits on how to solve this header too big error message
|
1 2 3 |
proxy_buffer_size 64k; proxy_buffers 8 64k; proxy_busy_buffers_size 64k; |
For a whole keycloak listening on default port 8080 example with letsencrypt see below
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
server { listen 80; listen [::]:80; server_name my.serv.er.name; include /etc/nginx/acme.conf; location / { return 301 https://$host$request_uri; } } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name my.serv.er.name; ssl_certificate /etc/letsencrypt/live/my.serv.er.name/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/my.serv.er.name/privkey.pem; access_log /var/log/nginx/my.serv.er.name.access.log; error_log /var/log/nginx/my.serv.er.name.error.log; location / { proxy_pass http://127.0.0.1:8080; 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; proxy_buffer_size 64k; proxy_buffers 8 64k; proxy_busy_buffers_size 64k; } } |
Create MySQL Database and User – the proper way
I read so much bullshit about how to create a mysql user and database, in most cases it’s not just inefficient but also wrong. So here is the best and most efficient way to create a MySQL database and user with password:
|
1 2 |
CREATE DATABASE mydatabase; GRANT ALL ON mydatabase.* TO 'myuser'@'localhost' IDENTIFIED BY 'mypassword'; |
Done. No FLUSH PRIVILEGES. No create user, then database then give user…
Read ArticleYoutube is going DOWN
Today I received an email from Youtube [Channel Name], Today we are announcing changes to the YouTube Partner Program (YPP). While our goal remains to keep the YPP open to as many channels as possible, we recognize we need more safeguards in place to protect creator revenue across the YouTube ecosystem. What’s Changing Under the…
Read ArticleHetzner Xeon 1245v2 MegaRAID Gentoo Kernel v4.14.11
This is a kernel config for Intel Xeon 1245v2 with LSI MegaRAID Controllers The particular version of this Kernel config is for Linux kernel 4.14.11 kernel-4.14.11-config It is certainly optimizable, but works for me TM.
Read Article