Deploying a website on FastAPI on Windows Server
It is necessary to deploy the website on Python
1. INSTALLATION OF PYTHON AND DEPENDENCIES
- Install Python 3.13.2
- Install MySql
- Install .Net 9.0
- Add python.exe and pip.exe to PATH
- Create a virtual environment for the project
- Activate the environment
- Install project dependencies
2. DEPLOYMENT OF THE PROJECT
- Place the project source code in the directory:
C:\project\site\
3. CONFIGURATION OF FASTAPI AUTO-START
- Download NSSM: https://nssm.cc/download
- Install the FastAPI application as a service
- Start the service
4. PROTECTION AGAINST BOTS AND SCANNERS
- Configure incoming connection filtering:
- Allow access only from HTTP User-Agent’s that do not resemble curl, python, etc.
- Block IP addresses from public scanner datasets (optional)
- Set rate-limit (request limit) through proxy
- Use WAF if possible (for example, via Cloudflare or IIS App Firewall)
5. HTTPS CONFIGURATION
- Obtain and install an SSL certificate (for example, from Let's Encrypt via win-acme)
- Configure HTTP → HTTPS redirection in nginx.conf or IIS
6. OPENING PORTS ON THE FIREWALL
- Allow traffic on the following ports:
- 80 (HTTP)
- 443 (HTTPS)
- Block all other ports externally (including port 8000)
- Access to port 8000 should be only from localhost (via proxy)
7. DOMAIN BINDING
- Set A-record of the domain to the server IP
- Ensure that yourdomain.com resolves to the correct IP
- Check website access via the domain
-
134 Hey Kirill ⚙️
I regularly set up deployment of Python projects (FastAPI) on Windows servers, including installation via NSSM, bot protection, SSL configuration, firewall, and domain hosting. Your plan is clearly outlined — I can implement all points step by step.
Recently, I did a similar setup for https://octus.com/ — where the Python project ran through Uvicorn on Windows + nginx + Cloudflare. The entire deployment was like a service, with HTTPS and port forwarding.
🔧 What I will do:
Install Python 3.13.2, MySQL, virtual environment, dependencies
… Configure FastAPI application as a Windows service via NSSM
Implement User-Agent filtering and rate limiting (via nginx reverse proxy or IIS App Firewall)
Configure SSL through win-acme (Let’s Encrypt)
Allow only ports 80/443, port 8000 — only for localhost
Set up A-record for the domain, check DNS resolution and website operation
🔹 Experience: Python (FastAPI, Uvicorn), nginx, IIS, Windows Server, .NET, MySQL
🔹 Skilled in working with DNS, proxies, certificates, and firewalls
🔹 All work is documented with logs and step-by-step comments (for future support)
𝐆𝐢𝐭𝐇𝐮𝐛 – https://github.com/sergeyshmigelsky
𝐲𝐨𝐮 𝐜𝐚𝐧 𝐚𝐥𝐬𝐨 𝐬𝐞𝐞 𝐩𝐫𝐨𝐣𝐞𝐜𝐭𝐬 𝐚𝐧𝐝 𝐫𝐞𝐯𝐢𝐞𝐰𝐬 𝐡𝐞𝐫𝐞 – https://clutch.co/profile/sbase#highlights
𝐨𝐮𝐫 𝐬𝐢𝐭𝐞 – https://sbase.team/
💰 Cost — fixed or $25/hour
Ready to start today — just provide server access or describe the environment (Win Server / VPS / local host).
-
1101 7 1 Good day!
Interested in completing your task.
I have experience deploying Python projects (FastAPI, MySQL), configuring services through NSSM, securing through proxy and firewall, as well as working with HTTPS and domains.
Ready to discuss details and start working.
-
277 1 0 Good day!
Ready to deploy your Python (FastAPI) website according to the technical specifications.
I have experience with server setup for similar projects: installing Python, creating a virtual environment, auto-start via NSSM, traffic filtering, SSL through win-acme, as well as proxy configuration (nginx/IIS), firewall, and domain connection.
-
1616 8 0 Hello
I am a developer in the field of AI/ML & WEB DEV. I can complete your project. Write to me, let's discuss.
-
120 2 0 There are many questions about the task, so I will conduct an audit and select the best solutions for implementing the task. I will do everything possible with scripts, which can then be used to repeat the deployment. I will check the security of the solution.
-
573 9 0 Write in private messages, I will do your website deployment task today.
I can show my work related to administration and deployment of services.
Current freelance projects in the category Python
Power BI
16 USD
The dashboard runs on a Google server, we need to transfer all logic + code Required skills: deployment of ETL processes on a Linux server + working with BigQuery and Postgre There is working code that runs on Google, where the database itself is, we need to transfer it to… Python, Databases & SQL ∙ 4 hours 33 minutes back ∙ 7 proposals |
Telegram bot for hiring/searching employees. For job searching.
25 USD
1. General Concept Creation of a Telegram bot for automating recruitment and mutual job searching. The system operates on the principle of active response and mutual confirmation of interest (Double Opt-In). The system includes two roles: Employer (Company Owner) and Worker (Job… Python, Bot Development ∙ 1 day 12 hours back ∙ 86 proposals |
Technical support for web platform (Python/Django)There is a working web project that needs to be maintained and gradually organized, without rewriting from scratch. Project stack: Backend: Python, Django, Django Rest Framework Frontend: Next.js Database: PostgreSQL Infrastructure: AWS (EC2), Nginx There are integrations… Python, Web Programming ∙ 1 day 14 hours back ∙ 70 proposals |
Development of a web service with paid access to an online chatGood day, it is necessary to develop a web service that includes: * personal links for users; * a page with a description of the service; * payment through PayPal; * online real-time chat; * video display on the user page; * accounting for paid time and automatic access… Python, Web Programming ∙ 2 days 15 hours back ∙ 75 proposals |
Application developmentI wish to create a mobile application for communication, the app should have audio and video calls, group chat creation, the ability to sync with phone contacts, account settings: email binding, 2FA, phone number, the ability to customize app notifications, change the app… Java, Python ∙ 3 days 13 hours back ∙ 36 proposals |