Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
2 changes: 2 additions & 0 deletions Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/.htpasswd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
devops:$apr1$C89Cz4lW$0Cvobex80qCituPyPB67l/
admin1:$apr1$RXdasUue$9cXqWvJpFTEL34BEtUUvF.
10 changes: 10 additions & 0 deletions Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flask import Flask

app = Flask(__name__)

@app.route('/')
def handle():
return "Hello from Semir! From port 3000."

if "__main__" == __name__:
app.run(port=3000)
10 changes: 10 additions & 0 deletions Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/app2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flask import Flask

app = Flask(__name__)

@app.route('/')
def handle():
return "Hello from Semir! From port 3001."

if "__main__" == __name__:
app.run(port=3001)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello from Semir!
30 changes: 30 additions & 0 deletions Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
user devops;
worker_processes auto;
pid /run/nginx.pid;

events {
worker_connections 2048;
}

http {
upstream load_balance {
server 127.0.0.1:3000 weight=1;
server 127.0.0.1:3001 weight=1;
}
server {
listen 80;
location / {
proxy_pass http://load_balance;
}
location /admin {
root /home/devops/nginx/admin;
auth_basic "Admins' area";
auth_basic_user_file /home/devops/nginx/.htpasswd;
}
location /static {
root /home/devops/nginx;
expires 30d;
add_header Cache-Control "public, no-transform";
}
}
}
Binary file added Month 2/Docker-2/Screenshot 2025-10-24 133104.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.