Ubuntu Pastebin

Paste from cjwatson at Fri, 24 Apr 2015 15:20:50 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
=== modified file 'hooks/actions.py'
--- hooks/actions.py	2015-04-19 00:04:11 +0000
+++ hooks/actions.py	2015-04-24 15:20:37 +0000
@@ -200,10 +200,20 @@ def publish_website_relations(service_na
                 ]],
             },
         {
+            'service_name': 'git-service-http-redirect',
+            'service_host': '0.0.0.0',
+            'service_port': '80',
+            'service_options':
+                http_options +
+                ['redirect scheme https code 301 if !{ ssl_fc }'],
+            'servers': None,
+            },
+        {
             'service_name': 'git-service-smart-http',
             'service_host': '0.0.0.0',
-            'service_port': str(config['port_smart_http']),
+            'service_port': '443',
             'service_options': http_options + ['option httpchk'],
+            'crts': ['DEFAULT'],
             'servers': [[
                 server_name, server_ip, str(config['port_smart_http']),
                 'check',
Download as text