Внимание!
Эта wiki об устаревших версиях
Документация к актуальной версии интеграции 1С и телефонии доступна по ссылке

Инструменты пользователя

Инструменты сайта


astpanel:optimization

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
astpanel:optimization [2019/08/05 12:41]
apor
astpanel:optimization [2019/12/16 11:11] (текущий)
apor [Настройка Nginx]
Строка 40: Строка 40:
 </​code>​ </​code>​
  
-Правим порт в конфиг **[[https://​files.miko.ru/​s/​8N4KeY805dN61m3 ​| /​etc/​nginx/​nginx.conf]]**. Параметр "​**listen**"​.+Правим порт в конфиг **[[https://​files.miko.ru/​s/​dnrxCWZG6hrjbXk ​| /​etc/​nginx/​nginx.conf]]**. Параметр "​**listen**"​.
 <​code>​ <​code>​
 +
 user  nginx; user  nginx;
 worker_processes ​ 1; worker_processes ​ 1;
Строка 47: Строка 48:
 pid        /​var/​run/​nginx.pid;​ pid        /​var/​run/​nginx.pid;​
 load_module modules/​ndk_http_module.so;​ load_module modules/​ndk_http_module.so;​
-load_module modules/​ngx_http_lua_module.so;​+load_module ​"modules/​ngx_http_lua_module.so";
  
 events { events {
Строка 63: Строка 64:
   
      location /​pbxcore/​api/​miko_ajam/​getvar {      location /​pbxcore/​api/​miko_ajam/​getvar {
 +         default_type '​text/​plain';​
 +         content_by_lua_file /​etc/​nginx/​http_get_variables.lua;​
 +         keepalive_timeout 0;
 +     }
 +     location /​admin/​1c/​getvar/​index.php {
          default_type '​text/​plain';​          default_type '​text/​plain';​
          content_by_lua_file /​etc/​nginx/​http_get_variables.lua;​          content_by_lua_file /​etc/​nginx/​http_get_variables.lua;​
Строка 71: Строка 77:
 </​code>​ </​code>​
  
-Заливаем файл на сервер **[[https://​files.miko.ru/​s/​TPmJxuX5mZCZfRc ​| /​etc/​nginx/​http_get_variables.lua]]**+Заливаем файл на сервер **[[https://​files.miko.ru/​s/​fjCXEdFUd7fQ6La ​| /​etc/​nginx/​http_get_variables.lua]]**
 Устанавливаем права доступа к файлу Устанавливаем права доступа к файлу
 <​code>​chown nginx:nginx /​etc/​nginx/​http_get_variables.lua <​code>​chown nginx:nginx /​etc/​nginx/​http_get_variables.lua
Строка 89: Строка 95:
 Смотрим статус сервера:​ Смотрим статус сервера:​
 <​code>​systemctl status nginx.service</​code>​ <​code>​systemctl status nginx.service</​code>​
- 
 ==== Проверка работы сервиса ==== ==== Проверка работы сервиса ====
  
astpanel/optimization.1565008879.txt.gz · Последние изменения: 2019/08/05 12:41 — apor