Kubernetes/srcs/nginx/nginx.conf
Matthos Denys d3fc4e825f final
2021-03-12 19:43:02 +03:00

38 lines
596 B
Nginx Configuration File
Executable File

events {}
http {
server {
listen 80 default_server;
error_log logs/error.log debug;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name www;
root /var/www/localhost/htdocs/;
index index.html;
ssl_certificate /etc/nginx/ssl/html.pem;
ssl_certificate_key /etc/nginx/ssl/html.key;
location /wordpress {
return 307 https://192.168.99.166:5050/;
}
location /phpmyadmin/ {
proxy_pass https://192.168.99.166:5000/;
proxy_redirect /index.php /phpmyadmin/index.php;
}
}
}