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.
|
|
|
server {
|
|
|
|
listen 195.113.20.177:80;
|
|
|
|
listen [2001:718:1e03:801::b1]:80;
|
|
|
|
server_name mam-test.ks.matfyz.cz;
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
|
|
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
# SSL configuration
|
|
|
|
listen 195.113.20.177:443 ssl;
|
|
|
|
listen [2001:718:1e03:801::b1]:443 ssl;
|
|
|
|
|
|
|
|
# SSL keys
|
|
|
|
ssl on;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/mam-test.ks.matfyz.cz/fullchain.pem; # managed by Certbot
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/mam-test.ks.matfyz.cz/privkey.pem; # managed by Certbot
|
|
|
|
ssl_dhparam /etc/ssl/dhparams.pem;
|
|
|
|
ssl_session_cache shared:SSL:10m;
|
|
|
|
ssl_session_timeout 5m;
|
|
|
|
|
|
|
|
server_name mam-test.ks.matfyz.cz;
|
|
|
|
|
|
|
|
client_max_body_size 50M;
|
|
|
|
|
|
|
|
auth_basic "MaMweb test - access restricted";
|
|
|
|
auth_basic_user_file /akce/mam/www/mamweb-test/.htpasswd;
|
|
|
|
|
|
|
|
location /static/ {
|
|
|
|
root /akce/mam/www/mamweb-test/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /media/ {
|
|
|
|
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 {
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass unix:/tmp/uwsgi-mamweb_test.sock;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|