diff --git a/conf/nginx/site-enabled_aether-phpmyadmin.conf b/conf/nginx/site-enabled_aether-phpmyadmin.conf index d5225a8..4695952 100644 --- a/conf/nginx/site-enabled_aether-phpmyadmin.conf +++ b/conf/nginx/site-enabled_aether-phpmyadmin.conf @@ -1,20 +1,44 @@ server { - listen 80; - listen [::]:80; - server_name phpmyadmin-oneskyit.localhost phpmyadmin.oneskyit.com; + listen 80; + listen [::]:80; + + server_name phpmyadmin-oneskyit.localhost phpmyadmin.oneskyit.com dev-phpmyadmin.oneskyit.com test-phpmyadmin.oneskyit.com; - access_log /logs/nginx/access_oneskyit_phpmyadmin.log; + access_log /logs/nginx/access_oneskyit_phpmyadmin.log; - index index.php; + index index.php; - location / { - proxy_pass http://phpmyadmin:80; - proxy_pass_header Content-Type; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; # allow websockets - proxy_pass_header Connection; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header Host $host; - } + location / { + proxy_pass http://phpmyadmin:80; + proxy_pass_header Content-Type; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; # allow websockets + proxy_pass_header Connection; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $host; + } } + + +server { + listen 443 ssl; + listen [::]:443 ssl http2; + + server_name phpmyadmin-oneskyit.localhost phpmyadmin.oneskyit.com dev-phpmyadmin.oneskyit.com test-phpmyadmin.oneskyit.com; + + access_log /logs/nginx/access_oneskyit_phpmyadmin.log; + + index index.php; + + location / { + proxy_pass http://phpmyadmin:80; + proxy_pass_header Content-Type; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; # allow websockets + proxy_pass_header Connection; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $host; + } +} \ No newline at end of file diff --git a/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf b/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf index f388a1f..cd4a271 100644 --- a/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf +++ b/conf/nginx/site-enabled_aether_fastapi_gunicorn.conf @@ -6,6 +6,7 @@ server { fastapi_gunicorn.localhost dev-api.localhost dev-api.oneskyit.com + test-api.oneskyit.com ; access_log /logs/nginx/access_fastapi_gunicorn.log; @@ -42,6 +43,7 @@ server { fastapi_gunicorn.localhost dev-api.localhost dev-api.oneskyit.com + test-api.oneskyit.com ; access_log /logs/nginx/access_fastapi_gunicorn.log; diff --git a/conf/nginx/site-enabled_aether_flask_gunicorn.conf b/conf/nginx/site-enabled_aether_flask_gunicorn.conf index ece72a6..a7dc611 100644 --- a/conf/nginx/site-enabled_aether_flask_gunicorn.conf +++ b/conf/nginx/site-enabled_aether_flask_gunicorn.conf @@ -19,6 +19,8 @@ server { dev-ncsd.oneskyit.com *.dev-ncsd.oneskyit.com dev-npa.oneskyit.com *.dev-npa.oneskyit.com dev-rli.oneskyit.com *.dev-rli.oneskyit.com + + test-app.oneskyit.com ; access_log /logs/nginx/access_flask_gunicorn.log; @@ -68,6 +70,8 @@ server { dev-ncsd.oneskyit.com *.dev-ncsd.oneskyit.com dev-npa.oneskyit.com *.dev-npa.oneskyit.com dev-rli.oneskyit.com *.dev-rli.oneskyit.com + + test-app.oneskyit.com ; access_log /logs/nginx/access_flask_gunicorn.log; diff --git a/conf/nginx/site.conf b/conf/nginx/site.conf index 5aef723..b7f5b2d 100644 --- a/conf/nginx/site.conf +++ b/conf/nginx/site.conf @@ -1,6 +1,6 @@ server { listen 80; - server_name docker.localhost; + server_name docker.localhost docker.oneskyit.com; error_log /logs/nginx/error_docker.log; access_log /logs/nginx/access_docker.log;