nginx-profiles/pipes.silvrtree.co.uk
2016-06-29 11:48:51 +01:00

46 lines
938 B
Plaintext

server {
listen [::]:80;
listen 80;
# listen on both hosts
server_name pipes.silvrtree.co.uk;
# and redirect to the https host (declared below)
# avoiding http://www -> https://www -> https:// chain.
return 301 https://pipes.silvrtree.co.uk$request_uri;
}
server {
listen [::]:443 ssl spdy;
listen 443 ssl spdy;
server_name .pipes.silvrtree.co.uk;
include secure/ssl.conf;
client_body_in_file_only clean;
client_body_buffer_size 32K;
client_max_body_size 10M;
sendfile on;
send_timeout 300;
#Configures the publicly served root directory
#Configures the index file to be served
#These lines create a bypass for certain pathnames
#www.example.com/test.js is now routed to port 3000
#instead of port 80
location / {
gzip_static on;
proxy_pass http://localhost:9002;
proxy_set_header Host $host;
# auth_basic "Restricted";
# auth_basic_user_file /etc/nginx/.htpasswd;
}
}