Jan Dittberner
6a8997e950
This commit adds an initial Vagrant and Saltstack setup that reuses the same configuration as that of the gva repository. The LDAP server itself is not configured yet.
28 lines
582 B
Nginx Configuration File
28 lines
582 B
Nginx Configuration File
server {
|
|
server_name www.{{ domainname }};
|
|
listen 443 ssl;
|
|
|
|
ssl_certificate {{ ssl_certdir }}/{{ domainname }}.crt.pem;
|
|
ssl_certificate_key {{ ssl_keydir }}/{{ domainname }}.key.pem;
|
|
|
|
if ( $host != '{{ domainname }}') {
|
|
return 301 https://{{ domainname }}$request_uri;
|
|
}
|
|
|
|
client_max_body_size 1M;
|
|
gzip on;
|
|
gzip_types text/javascript application/x-javascript text/css;
|
|
|
|
location /media {
|
|
alias /vagrant/gnuviechadmin/media;
|
|
}
|
|
|
|
location /static {
|
|
alias /vagrant/gnuviechadmin/assets;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8000;
|
|
}
|
|
}
|