• May 21, 2022

Configure HAProxy to Accept Preflight Requests

Recently I developed an API with Spring Boot. All the tests on the local environment went well with Postman. However, when deploying to prod through HAProxy, I got this error: There are also other errors regarding missing headers, origin… There are some solutions available, such as add code to my Spring Boot code base. I…

Read More

Fix Angular 404 on reload Nginx

To keep it short, here is the code you need to replace in /etc/nginx/conf.d/default.conf You may want to update server_name to your domain name if you are not deploying in docker. Otherwise, this config works with docker. Give it a try, you’ll see that the 404 page is gone when you refresh your site.

Read More

Integrate Keycloak With Spring Boot Step by Step

Need help configure keycloak with spring boot? This is what you need.

Read More