Browse Source

Update konfiguráků Nginxu podle aktuálního stavu

export_seznamu_prednasek
Pavel "LEdoian" Turinsky 3 years ago
parent
commit
abf493afe8
  1. 7
      setup/nginx/mam-test.ks.matfyz.cz
  2. 20
      setup/nginx/mam.mff.cuni.cz

7
setup/nginx/mam-test.ks.matfyz.cz

@ -33,6 +33,13 @@ server {
root /akce/mam/www/mamweb-test/;
}
location /aesop-export/ {
auth_basic "AESOP API";
auth_basic_user_file /akce/mam/www/mamweb-test/.htpasswd-aesop;
try_files $uri @mamweb_test;
}
location / { try_files $uri @mamweb_test; }
location @mamweb_test {

20
setup/nginx/mam.mff.cuni.cz

@ -26,6 +26,12 @@ server {
client_max_body_size 50M;
location /aesop-export/ {
auth_basic "AESOP API";
auth_basic_user_file /akce/mam/www/mamweb-prod/.htpasswd-aesop;
try_files $uri @mamweb_prod;
}
location /static/ {
root /akce/mam/www/mamweb-prod/;
}
@ -37,9 +43,17 @@ server {
location /wiki/ {
proxy_pass http://127.0.0.1:5001/;
proxy_set_header X-Real_IP $remote_addr;
proxy_redirect off;
sub_filter 'href="/' 'href=/wiki/';
sub_filter 'src="/' 'src=/wiki/';
proxy_redirect / /wiki/;
#rewrite '/' '/wiki';
sub_filter_once off;
sub_filter 'href="/' 'href="/wiki/';
sub_filter 'src="/' 'src="/wiki/';
sub_filter 'action="/' 'action="/wiki/';
# Overkill:
#sub_filter '="/' '="/wiki/';
#sub_filter ':5001/' '/wiki/';
#sub_filter 'Location: /' 'Location: /wiki/';
#sub_filter '_login' '_test';
}
location / { try_files $uri @mamweb_prod; }

Loading…
Cancel
Save