An opaque wall is more valuable than a fuzzy mirror. So, Absorbing that which can pass through a robust structure is sensible rather than reflecting distorted ideas. Blindly acting in support of shallow trends is the starting point of becoming gullible. It's one responsibility to stay stubborn with one's understanding of things unless proven otherwise. Learning the right thing is never a problem, but it's always a problem to want to be always true. Faith & belief are vague ideas open to manipulations. Trust is something that needs to be built. Understand where you don't fit in, Seek the truth which liberates you, and Never allow yourself to drown in phony norms just in fear of missing out. These will lay the foundation for the coming next few years. Be a proud & phenomenal outlier.
In this tutorial, I will guide you through setting up a FastAPI server on a remote machine, configuring Nginx as a reverse proxy, and enabling HTTPS using Certbot. Step 1: Setting Up a Non-sudo User on the Remote Machine Create a Non-sudo User: sudo adduser karthik Switch to the New User: su karthik Create SSH Directory and Authorized Keys: cd ~/ mkdir .ssh touch .ssh/authorized_keys Append your local machine's SSH public key to ~/.ssh/authorized_keys on the remote machine. Step 2: Installing Nginx Install Nginx: sudo apt- get update sudo apt- get install nginx Verify Nginx Installation: Open a web browser and enter your remote machine's IP address. You should see the Nginx welcome page. Step 3: Configuring Nginx as a Reverse Proxy Edit Nginx Configuration: sudo nano /etc/ nginx /sites-available/ fastapi Add the following configuration (use a simple webserver for testing this): server { listen 80 ; server_name your_domain; loc...
Comments
Post a Comment