31 lines
705 B
Plaintext
31 lines
705 B
Plaintext
|
#### OpenNebula Sunstone upstream
|
||
|
upstream sunstone {
|
||
|
server 127.0.0.1:%%port_sunstone;
|
||
|
# server %%adresse_ip_eth0:%%port_sunstone;
|
||
|
}
|
||
|
|
||
|
#### 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;
|
||
|
|
||
|
### Proxy requests to upstream
|
||
|
location / {
|
||
|
proxy_pass http://sunstone;
|
||
|
}
|
||
|
}
|