This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
mandayejs/debian/nginx-example.conf

34 lines
1005 B
Plaintext

upstream mandayejs {
server 127.0.0.1:8002;
}
server {
listen 80;
server_name conservatoire.example.fr ;
location ~ ^/*$ {
set $weird_uri Connect.aspx?key=CV4j27Em0dM=;
return 302 /$weird_uri;
}
location /_mandaye/ {
uwsgi_pass mandayejs;
include /home/deployer/workspace/mandayejs/uwsgi_params;
}
location /Common/ChangeYear.aspx {
sub_filter </head> '<link rel="stylesheet" href="/_mandaye/static/css/font-awesome.min.css" type="text/css"/>';
proxy_pass http://new.extranet.bizarre.fr;
}
location / {
sub_filter </head> '<script type="text/javascript" src="/_mandaye/static/xstatic/jquery.min.js"></script><script type="text/javascript" src="http://$server_name/_mandaye/static/mandaye.js"></script></head>';
sub_filter_once off;
proxy_pass http://new.extranet.bizarre.fr;
}
access_log /var/log/nginx/mandayejs.example.dev.entrouvert.org-access.log combined;
error_log /var/log/nginx/mandayejs.example.dev.entrouvert.org-errors.log debug;
}