./configure \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--http-client-body-temp-path=/var/cache/nginx/client_temp \
--http-proxy-temp-path=/var/cache/nginx/proxy_temp \
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
--http-scgi-temp-path=/var/cache/nginx/scgi_temp \
--user=nginx \
--group=nginx \
--with-openssl=/tmp/openssl-1.1.1d \
--with-openssl-opt=enable-tls1_3 \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-http_auth_request_module \
--with-http_v2_module \
--with-mail \
--with-mail_ssl_module \
--with-file-aio \
--with-ipv6 \
--add-module=/tmp/nginx-push-stream-module-0.4.1 \
--add-module=/tmp/mod_zip-1.2.0 \
--add-module=/tmp/headers-more-nginx-module \
--add-module=/tmp/ngx_pagespeed-1.13.35.2 \
--add-dynamic-module=/tmp/ngx_brotli \
--add-module=/tmp/nginx-module-vts-0.1.18 \
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
kind: ConfigMap
apiVersion: v1
metadata:
name: nginx-config-users
data:
nginx.conf: |
events {
}
http {
server {
listen 80 default_server;
listen [::]:80 default_server;
# Set nginx to serve files from the shared volume!
root /var/www/public;
server_name _;
index index.php;
location /mcs/users/graphql/ {
rewrite ^/mcs/users(/graphql/.+)$ $1 last;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
}
}
location /service/users/endpoint/ {
try_files $uri $uri/ /endpoint/;
}
events {
}
http {
server {
listen 80 default_server;
listen [::]:80 default_server;
# Set nginx to serve files from the shared volume!
root /var/www/public;
server_name _;
index index.php;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
}
}
spec:
tls:
- hosts:
- test.ru
- '*.test.ru'
secretName: letsencrypt
rules:
- host: '*.test.ru'
http:
paths:
- path: /mcs/business
pathType: Prefix
backend:
service:
name: carlov-business-service
port:
number: 80
"stream_socket_client(): Unable to connect to tcp://hawk.rmq.cloudamqp.com:18832 (Connection timed out)"
$connection = new AMQPStreamConnection(
'hawk.rmq.cloudamqp.com', #host - имя хоста, на котором запущен сервер RabbitMQ
1883, #port - номер порта сервиса
'hbcittgb', #user - имя пользователя для соединения с сервером
'yaCPZE87Yn1XGq_Vwmg2yQCtdYrc-MIm', #password
'hbcittgb'
);
$connection->close();