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

Delta Between Two Patch Sets: config/nginx.conf.template

Issue 6940084: Serve the GUI assets over HTTPS
Left Patch Set: Serve the GUI assets over HTTPS Created 12 years, 4 months ago
Right Patch Set: Serve the GUI assets over HTTPS Created 12 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « config.yaml ('k') | hooks/config-changed » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 server {
2 listen 80;
3 server_name _;
4 return 301 https://$host$request_uri;
5 }
6
1 server { 7 server {
gary.poster 2012/12/19 03:55:52 As we discussed, please add a redirect from port 8
teknico 2012/12/19 11:54:38 Done.
2 listen 443 default_server ssl; 8 listen 443 default_server ssl;
3 server_name _; 9 server_name _;
4 root %(server_root)s; 10 root %(server_root)s;
5 index index.html; 11 index index.html;
6 ssl_certificate /etc/ssl/private/juju-gui/server.pem 12 ssl_certificate /etc/ssl/private/juju-gui/server.pem;
gary.poster 2012/12/19 03:55:52 You need to terminate this with a semicolon.
teknico 2012/12/19 11:54:38 Done.
7 ssl_certificate_key /etc/ssl/private/juju-gui/server.key 13 ssl_certificate_key /etc/ssl/private/juju-gui/server.key;
gary.poster 2012/12/19 03:55:52 This one needs a semicolon too.
teknico 2012/12/19 11:54:38 Done.
8 14
9 # Serve static assets. 15 # Serve static assets.
10 location ^~ /juju-ui/ { 16 location ^~ /juju-ui/ {
11 root %(server_root)s; 17 root %(server_root)s;
12 } 18 }
13 location = /favicon.ico { 19 location = /favicon.ico {
14 expires 10d; 20 expires 10d;
15 root %(server_root)s; 21 root %(server_root)s;
16 } 22 }
17 location = /index.html { 23 location = /index.html {
18 root %(server_root)s; 24 root %(server_root)s;
19 } 25 }
20 26
21 # Fall through to the single-page app for all other URLs. 27 # Fall through to the single-page app for all other URLs.
22 location ~ / { 28 location ~ / {
23 rewrite .* /index.html last; 29 rewrite .* /index.html last;
24 } 30 }
25 } 31 }
LEFTRIGHT

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