fix: revert nginx.conf to HTTP for CI - HTTPS applied at runtime by deploy job

This commit is contained in:
ikechukwu Elizabeth
2026-06-01 20:00:52 +01:00
parent ee5b28fb35
commit dfae6afe52
-17
View File
@@ -1,27 +1,10 @@
# Redirect HTTP to HTTPS
server { server {
listen 80; listen 80;
server_name taskflow.lizzycloudlab.online lizzycloudlab.online;
return 301 https://$host$request_uri;
}
# HTTPS server
server {
listen 443 ssl;
server_name taskflow.lizzycloudlab.online lizzycloudlab.online;
ssl_certificate /etc/letsencrypt/live/taskflow.lizzycloudlab.online/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/taskflow.lizzycloudlab.online/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
location / { location / {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
location /api/ { location /api/ {
proxy_pass http://backend:3000; proxy_pass http://backend:3000;
proxy_http_version 1.1; proxy_http_version 1.1;