2015-08-11 15:16:45 +02:00
|
|
|
#### OpenNebula Sunstone upstream
|
|
|
|
upstream sunstone {
|
2015-08-11 17:17:38 +02:00
|
|
|
server %%adresse_ip_eth0:%%port_sunstone;
|
2015-08-11 15:16:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#### cloudserver.org HTTP virtual host
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name cloudserver.org;
|
|
|
|
|
|
|
|
### Permanent redirect to HTTPS (optional)
|
|
|
|
return 301 https://$server_name:443;
|
|
|
|
}
|
|
|
|
|
|
|
|
#### cloudserver.org HTTPS virtual host
|
|
|
|
server {
|
|
|
|
listen 443;
|
|
|
|
server_name cloudserver.org;
|
|
|
|
|
|
|
|
### SSL Parameters
|
|
|
|
ssl on;
|
|
|
|
ssl_certificate %%server_pem;
|
|
|
|
ssl_certificate_key %%server_key;
|
|
|
|
|
2015-08-13 10:17:56 +02:00
|
|
|
client_max_body_size 1536M;
|
2015-08-11 15:16:45 +02:00
|
|
|
### Proxy requests to upstream
|
|
|
|
location / {
|
|
|
|
proxy_pass http://sunstone;
|
|
|
|
}
|
|
|
|
}
|