Configure HAProxy to Accept Preflight Requests (CORS)

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 CORS error: There are also other errors regarding missing headers, origin… There are some solutions available, such as adding code to my Spring Boot code base. … Read more

Ubuntu package management cheat sheet

Most used commands (copy directly from the man page) To remove a package To install a package List installed packages Search an installed package To remove mulitple packages using regex wildcard: For example, you want to remove all php related packages on your system, you can do like this: You’ll see messages like these: It … Read more

Top Useful Copy-Paste Commands For Apache Solr

Create an user To create an user in Solr, first, you need to enable authentication plugin by creating a file named security.json under /var/solr/data. Enter into your Solr environment (docker or command line where you have Solr installed) and execute the following command: This command creates the security.json file at the correct location and also … Read more