What helps you survive may also be the one thing that is killing the life in you. What someone desires the most can be just a talk or walk away. But the things that people do to prove that they belong!!!. No one can get a life with absolute freedom and no consequences. But sometimes it's just comforting to imagine what can be and forget what can never be. Becoming an adult presents you with an exciting set of problems. Sometimes a few daunting ones too. Gradually one may either become more desperate or get better at coming to terms with their desperation. Your goals are not any more straight lines, but elaborate mazes. You have to deal with that recurring thoughts of dissatisfaction with the things, and experiences that you desired but didn't pursue. But all of this, all the good, bad, the ugly is what anyone faces. But it's not an end, but rather a new beginning. One has to go through great endeavors, grand failures, and complex circumstances, to understand oneself. And change oneself if needed. One can only grow if he has gone through the process of unmaking.
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