diff options
| -rw-r--r-- | srcs/nginx/src/ft_services.conf | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/srcs/nginx/src/ft_services.conf b/srcs/nginx/src/ft_services.conf index 642dc8c..cfce45f 100644 --- a/srcs/nginx/src/ft_services.conf +++ b/srcs/nginx/src/ft_services.conf @@ -6,19 +6,25 @@ server { ssl_certificate_key /root/ft_services_key.pem; server_name localhost; - index index.html index.htm; - root /www; + index index.html index.htm; + root /www; location / { try_files $uri $uri/ =404; # if uri or uri/ not valid, 404 error } location /wordpress { - return 307 https://$host:5050; + return 307 http://$host:5050; } - location /phpmyadmin { - proxy_pass https://$host:5000; + location /phpmyadmin/ { + index index.php; + proxy_pass http://phpmyadmin-service:5000/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_redirect /index.php /phpmyadmin/index.php; } } |
