Skip to content
Snippets Groups Projects
Commit 19017847 authored by Martin Mareš's avatar Martin Mareš
Browse files

Přidána ukázková konfigurace pro Nginx

parent 666fc107
Branches
No related tags found
1 merge request!26Verzování statických souborů
server {
listen 195.113.20.177:443 ssl;
listen [2001:718:1e03:801::b1]:443 ssl;
server_name mo.mff.cuni.cz;
ssl on;
ssl_certificate /etc/ssl/domains/mo.mff.cuni.cz/bundle.pem;
ssl_certificate_key /etc/ssl/domains/mo.mff.cuni.cz/privkey.pem;
ssl_dhparam /etc/ssl/dhparams.pem;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;
client_max_body_size 1G;
### Production instance of OSMO
location /osmo {
include uwsgi_params;
uwsgi_pass unix:/akce/mo/osmo/var/osmo.sock;
}
location /osmo/static/ {
alias /akce/mo/osmo/static/;
}
location /osmo/assets/ {
location ~ ^/osmo/assets/[^/]+/(.*) {
alias /akce/mo/osmo/static/$1;
}
return 404;
}
location = /osmo/favicon.ico {
alias /akce/mo/osmo/static/favicon.ico;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment