# Установка StackStorm UI ``````{container} full-width ```bash # Add key and repo for the latest stable nginx sudo rpm --import http://nginx.org/keys/nginx_signing.key sudo sh -c "cat < /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/rhel/\\\$releasever/x86_64/ gpgcheck=1 enabled=1 EOT" # Ensure that EPEL repo is not used for nginx sudo sed -i 's/^\(enabled=1\)$/exclude=nginx\n\1/g' /etc/yum.repos.d/epel.repo # Install nginx sudo yum install -y nginx # Install st2web sudo yum install -y st2web # Generate a self-signed certificate or place your existing certificate under /etc/ssl/st2 sudo mkdir -p /etc/ssl/st2 sudo openssl req -x509 -newkey rsa:2048 -keyout /etc/ssl/st2/st2.key -out /etc/ssl/st2/st2.crt \ -days 365 -nodes -subj "/C=US/ST=California/L=Palo Alto/O=StackStorm/OU=Information \ Technology/CN=$(hostname)" # Copy and enable the supplied nginx config file sudo cp /usr/share/doc/st2/conf/nginx/st2.conf /etc/nginx/conf.d/ # Disable default_server configuration in existing /etc/nginx/nginx.conf sudo sed -i 's/default_server//g' /etc/nginx/nginx.conf sudo systemctl restart nginx sudo systemctl enable nginx firewall-cmd --zone=public --add-service=http --add-service=https firewall-cmd --zone=public --permanent --add-service=http --add-service=https ``` ``````