Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1138)

Unified Diff: config/nginx.conf.template

Issue 6940084: Serve the GUI assets over HTTPS
Patch Set: Serve the GUI assets over HTTPS Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « config.yaml ('k') | hooks/config-changed » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: config/nginx.conf.template
=== modified file 'config/nginx.conf.template'
--- config/nginx.conf.template 2012-12-06 17:45:31 +0000
+++ config/nginx.conf.template 2012-12-19 17:24:21 +0000
@@ -1,9 +1,16 @@
server {
listen 80;
server_name _;
+ return 301 https://$host$request_uri;
+}
+
+server {
+ listen 443 default_server ssl;
+ server_name _;
root %(server_root)s;
-
index index.html;
+ ssl_certificate /etc/ssl/private/juju-gui/server.pem;
+ ssl_certificate_key /etc/ssl/private/juju-gui/server.key;
# Serve static assets.
location ^~ /juju-ui/ {
« no previous file with comments | « config.yaml ('k') | hooks/config-changed » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b