2013-05-27 05:40:16 +10:00
|
|
|
upstream app_server {
|
|
|
|
server 127.0.0.1:12000 fail_timeout=0;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name dpaste.de dpaste.org;
|
2013-05-27 19:26:36 +10:00
|
|
|
include /srv/dpaste.de/src/dpaste/server/nginx_server.conf;
|
|
|
|
}
|
2013-05-27 05:40:16 +10:00
|
|
|
|
2013-05-27 19:26:36 +10:00
|
|
|
server {
|
|
|
|
listen 443;
|
|
|
|
server_name dpaste.de;
|
|
|
|
ssl on;
|
|
|
|
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
|
|
|
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
2013-05-27 05:40:16 +10:00
|
|
|
|
2013-05-27 19:26:36 +10:00
|
|
|
include /srv/dpaste.de/src/dpaste/server/nginx_server.conf;
|
|
|
|
}
|
2013-05-27 05:40:16 +10:00
|
|
|
|
2013-05-27 19:26:36 +10:00
|
|
|
server {
|
|
|
|
listen 443;
|
|
|
|
server_name dpaste.org;
|
|
|
|
ssl on;
|
|
|
|
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
|
|
|
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
2013-05-27 05:40:16 +10:00
|
|
|
|
2013-05-27 19:26:36 +10:00
|
|
|
include /srv/dpaste.de/src/dpaste/server/nginx_server.conf;
|
2013-05-27 05:40:16 +10:00
|
|
|
}
|