You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.4 KiB
56 lines
1.4 KiB
server {
|
|
listen __PORT__;
|
|
server_name auth.__DNSDOMAIN__;
|
|
root __PORTALDIR__;
|
|
|
|
if ($uri !~ ^/((static|javascript|favicon).*|.*\.psgi)) {
|
|
rewrite ^/(.*)$ /index.psgi/$1 break;
|
|
}
|
|
|
|
location ~ \.psgi(?:$|/) {
|
|
include /etc/nginx/fastcgi_params;
|
|
fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
|
fastcgi_param LLTYPE cgi;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
set $sn $request_uri;
|
|
if ($sn ~ "^(.*)\?") {
|
|
set $sn $1;
|
|
}
|
|
fastcgi_param SCRIPT_NAME $sn;
|
|
fastcgi_split_path_info ^(.*\.psgi)(/.+)$;
|
|
}
|
|
|
|
index index.psgi;
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
|
|
# Uncomment this if you use https only
|
|
#add_header Strict-Transport-Security "15768000";
|
|
}
|
|
|
|
# SOAP functions for sessions management (disabled by default)
|
|
location /index/adminSessions {
|
|
deny all;
|
|
}
|
|
|
|
# SOAP functions for sessions access (disabled by default)
|
|
location /index.psgi/sessions {
|
|
deny all;
|
|
}
|
|
|
|
# SOAP functions for configuration access (disabled by default)
|
|
location /index.psgi/config {
|
|
deny all;
|
|
}
|
|
|
|
# SOAP functions for notification insertion (disabled by default)
|
|
location /index.psgi/notification {
|
|
deny all;
|
|
}
|
|
|
|
# DEBIAN
|
|
# If install was made with USEDEBIANLIBS (official releases), uncomment this
|
|
#location /javascript/ {
|
|
# alias /usr/share/javascript/;
|
|
#}
|
|
}
|
|
|