Update uwsgi conf with Nginx files
This commit is contained in:
parent
fdfeae7c2a
commit
bc08b06850
|
@ -41,7 +41,7 @@ server {
|
||||||
fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
||||||
fastcgi_param LLTYPE reload;
|
fastcgi_param LLTYPE reload;
|
||||||
|
|
||||||
# OR TO USE uWSGI
|
# Or with uWSGI
|
||||||
#include /etc/nginx/uwsgi_params;
|
#include /etc/nginx/uwsgi_params;
|
||||||
#uwsgi_pass 127.0.0.1:5000;
|
#uwsgi_pass 127.0.0.1:5000;
|
||||||
#uwsgi_param LLTYPE reload;
|
#uwsgi_param LLTYPE reload;
|
||||||
|
@ -61,7 +61,7 @@ server {
|
||||||
# include /etc/nginx/fastcgi_params;
|
# include /etc/nginx/fastcgi_params;
|
||||||
# fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
# fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
||||||
# fastcgi_param LLTYPE status;
|
# fastcgi_param LLTYPE status;
|
||||||
# # OR TO USE uWSGI
|
# # Or with uWSGI
|
||||||
# #include /etc/nginx/uwsgi_params;
|
# #include /etc/nginx/uwsgi_params;
|
||||||
# #uwsgi_pass 127.0.0.1:5000;
|
# #uwsgi_pass 127.0.0.1:5000;
|
||||||
# #uwsgi_param LLTYPE status;
|
# #uwsgi_param LLTYPE status;
|
||||||
|
|
|
@ -29,7 +29,7 @@ server {
|
||||||
fastcgi_split_path_info ^(.*\.psgi)(/.*)$;
|
fastcgi_split_path_info ^(.*\.psgi)(/.*)$;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
|
||||||
# OR TO USE uWSGI
|
# Or with uWSGI
|
||||||
#include /etc/nginx/uwsgi_params;
|
#include /etc/nginx/uwsgi_params;
|
||||||
#uwsgi_pass 127.0.0.1:5000;
|
#uwsgi_pass 127.0.0.1:5000;
|
||||||
#uwsgi_param LLTYPE psgi;
|
#uwsgi_param LLTYPE psgi;
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
# ~/CN=(?<CN>[^/]+) $CN;
|
# ~/CN=(?<CN>[^/]+) $CN;
|
||||||
#}
|
#}
|
||||||
|
|
||||||
# FastCGI backend definition
|
# FastCGI/uWSGI backend definition
|
||||||
upstream llng_portal_upstream {
|
upstream llng_portal_upstream {
|
||||||
server unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
server unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
||||||
|
#server 127.0.0.1:5000;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
@ -44,9 +45,9 @@ server {
|
||||||
# Uncomment this if you use Auth SSL:
|
# Uncomment this if you use Auth SSL:
|
||||||
#fastcgi_param SSL_CLIENT_S_DN_CN $ssl_client_s_dn_cn;
|
#fastcgi_param SSL_CLIENT_S_DN_CN $ssl_client_s_dn_cn;
|
||||||
|
|
||||||
# OR TO USE uWSGI
|
# Or with uWSGI
|
||||||
#include /etc/nginx/uwsgi_params;
|
#include /etc/nginx/uwsgi_params;
|
||||||
#uwsgi_pass 127.0.0.1:5000;
|
#uwsgi_pass llng_portal_upstream;
|
||||||
#uwsgi_param LLTYPE psgi;
|
#uwsgi_param LLTYPE psgi;
|
||||||
#uwsgi_param SCRIPT_FILENAME $document_root$sc;
|
#uwsgi_param SCRIPT_FILENAME $document_root$sc;
|
||||||
#uwsgi_param SCRIPT_NAME $sc;
|
#uwsgi_param SCRIPT_NAME $sc;
|
||||||
|
@ -56,30 +57,35 @@ server {
|
||||||
# REST/SOAP functions for sessions management (disabled by default)
|
# REST/SOAP functions for sessions management (disabled by default)
|
||||||
location ~ ^/index.psgi/adminSessions {
|
location ~ ^/index.psgi/adminSessions {
|
||||||
fastcgi_pass llng_portal_upstream;
|
fastcgi_pass llng_portal_upstream;
|
||||||
|
#uwsgi_pass llng_portal_upstream;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
# REST/SOAP functions for proxy auth and password reset (disabled by default)
|
# REST/SOAP functions for proxy auth and password reset (disabled by default)
|
||||||
location ~ ^/index.psgi/proxy {
|
location ~ ^/index.psgi/proxy {
|
||||||
fastcgi_pass llng_portal_upstream;
|
fastcgi_pass llng_portal_upstream;
|
||||||
|
#uwsgi_pass llng_portal_upstream;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
# REST/SOAP functions for sessions access (disabled by default)
|
# REST/SOAP functions for sessions access (disabled by default)
|
||||||
location ~ ^/index.psgi/sessions {
|
location ~ ^/index.psgi/sessions {
|
||||||
fastcgi_pass llng_portal_upstream;
|
fastcgi_pass llng_portal_upstream;
|
||||||
|
#uwsgi_pass llng_portal_upstream;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
# REST/SOAP functions for configuration access (disabled by default)
|
# REST/SOAP functions for configuration access (disabled by default)
|
||||||
location ~ ^/index.psgi/config {
|
location ~ ^/index.psgi/config {
|
||||||
fastcgi_pass llng_portal_upstream;
|
fastcgi_pass llng_portal_upstream;
|
||||||
|
#uwsgi_pass llng_portal_upstream;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
# REST/SOAP functions for notification insertion (disabled by default)
|
# REST/SOAP functions for notification insertion (disabled by default)
|
||||||
location ~ ^/index.psgi/notification {
|
location ~ ^/index.psgi/notification {
|
||||||
fastcgi_pass llng_portal_upstream;
|
fastcgi_pass llng_portal_upstream;
|
||||||
|
#uwsgi_pass llng_portal_upstream;
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,14 +32,17 @@ server {
|
||||||
#fastcgi_buffers 32 32k;
|
#fastcgi_buffers 32 32k;
|
||||||
|
|
||||||
|
|
||||||
# OR TO USE uWSGI
|
# Or with uWSGI
|
||||||
#include /etc/nginx/uwsgi_params;
|
#include /etc/nginx/uwsgi_params;
|
||||||
#uwsgi_pass 127.0.0.1:5000;
|
#uwsgi_pass 127.0.0.1:5000;
|
||||||
|
# Drop post datas
|
||||||
#uwsgi_pass_request_body off;
|
#uwsgi_pass_request_body off;
|
||||||
#uwsgi_param CONTENT_LENGTH "";
|
#uwsgi_param CONTENT_LENGTH "";
|
||||||
|
# Keep original hostname
|
||||||
#uwsgi_param HOST $http_host;
|
#uwsgi_param HOST $http_host;
|
||||||
|
# Keep original request (LLNG server will receive /lmauth)
|
||||||
#uwsgi_param X_ORIGINAL_URI $original_uri;
|
#uwsgi_param X_ORIGINAL_URI $original_uri;
|
||||||
# Improve performances
|
## Improve performances
|
||||||
#uwsgi_buffer_size 32k;
|
#uwsgi_buffer_size 32k;
|
||||||
#uwsgi_buffers 32 32k;
|
#uwsgi_buffers 32 32k;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue