]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
chat01- run rocket.chat in passenger
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Thu, 11 Aug 2016 08:56:44 +0000 (10:56 +0200)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Thu, 11 Aug 2016 08:56:44 +0000 (10:56 +0200)
customer/pixelpark/chat01.pixelpark.com.yaml

index ab00ce6889b9c71bcdf5ca2a4298b5321bc00fcd..5c56988d41c2e9ba861e2236a9b1204e806f49e5 100644 (file)
@@ -1,7 +1,9 @@
 ---
 site::role: base
 site::additional_classes:
-  - nginx
+#  - nginx
+  - repo::redhat::passenger
+  - apache::mod::passenger
 
 nginx::nginx_vhosts:
   mattermost:
@@ -42,4 +44,28 @@ nginx::nginx_vhosts:
       - 'X-Forwarded-Proto $scheme'
       - 'X-Frame-Options SAMEORIGIN'
       - 'X-Forwarded-Ssl on'
-    client_max_body_size: '50m'
\ No newline at end of file
+    client_max_body_size: '50m'
+
+site::profile::apache::pp_vhosts:
+  rocket:
+    docroot: '/opt/Rocket.Chat/bundle/public'
+    servername: chat-rocket.pixelpark.net
+    ssl_cert: '/etc/pki/tls/certs/wildcard.pixelpark.com-cert.pem'
+    ssl_key: '/etc/pki/tls/private/wildcard.pixelpark.com-key.pem'
+    ssl_chain: '/etc/pki/tls/certs/wildcard.pixelpark.com-cert.pem'
+    redirect_dest_non_ssl: 'https://chat-rocket.pixelpark.net/'
+#    headers:
+#      - 'set X-Content-Type-Options: nosniff'
+#    headers_ssl:
+#      - 'always set Strict-Transport-Security "max-age=31556926"'
+    custom_fragment: |
+      PassengerStickySessions on
+      PassengerNodejs /usr/bin/node
+      PassengerStartupFile main.js
+    passenger_app_root: /opt/Rocket.Chat/bundle
+    passenger_app_env: production
+    setenv:
+      - MONGO_URL mongodb://localhost:27017/rocketchat
+      - ROOT_URL https://chat-rocket.pixelpark.com/
+    docroot_owner: apache
+    docroot_group: apache
\ No newline at end of file