diff --git a/Month 1/Web Server/SeyedMojtabaMirsoleimani/DevOps_TechStack_Task4&Git.pdf b/Month 1/Web Server/SeyedMojtabaMirsoleimani/DevOps_TechStack_Task4&Git.pdf new file mode 100644 index 0000000..0d732ac Binary files /dev/null and b/Month 1/Web Server/SeyedMojtabaMirsoleimani/DevOps_TechStack_Task4&Git.pdf differ diff --git a/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/.htpasswd b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/.htpasswd new file mode 100644 index 0000000..006eda1 --- /dev/null +++ b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/.htpasswd @@ -0,0 +1,2 @@ +devops:$apr1$C89Cz4lW$0Cvobex80qCituPyPB67l/ +admin1:$apr1$RXdasUue$9cXqWvJpFTEL34BEtUUvF. diff --git a/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/app.py b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/app.py new file mode 100644 index 0000000..3756407 --- /dev/null +++ b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/app.py @@ -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) diff --git a/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/app2.py b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/app2.py new file mode 100644 index 0000000..9b465e2 --- /dev/null +++ b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/app2.py @@ -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) diff --git a/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/index.html b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/index.html new file mode 100644 index 0000000..5c30c6e --- /dev/null +++ b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/index.html @@ -0,0 +1 @@ +Hello from Semir! diff --git a/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/nginx.conf b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/nginx.conf new file mode 100644 index 0000000..2b03a73 --- /dev/null +++ b/Month 1/Web Server/SeyedMojtabaMirsoleimani/nginx/nginx.conf @@ -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"; + } + } +} diff --git a/Month 2/Docker-2/Screenshot 2025-10-24 133104.png b/Month 2/Docker-2/Screenshot 2025-10-24 133104.png new file mode 100644 index 0000000..a19e073 Binary files /dev/null and b/Month 2/Docker-2/Screenshot 2025-10-24 133104.png differ