Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
salt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
salt
Compare Revisions
853d44e4f90e795ba2e3049d0999e3e9768adf5e...fdf5773420d296dda595ce2a538bfaa8e00faa1e
Source
fdf5773420d296dda595ce2a538bfaa8e00faa1e
Select Git revision
...
Target
853d44e4f90e795ba2e3049d0999e3e9768adf5e
Select Git revision
Compare
Commits (2)
Include alfbiproxy
· a3aba040
root
authored
May 21, 2020
a3aba040
Merge branch 'master' of gitlab.parashift.com.au:open/salt
· fdf57734
root
authored
May 21, 2020
fdf57734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
0 deletions
+64
-0
alfbi-proxy/files/proxy.conf
alfbi-proxy/files/proxy.conf
+35
-0
alfbi-proxy/init.sls
alfbi-proxy/init.sls
+29
-0
No files found.
alfbi-proxy/files/proxy.conf
0 → 100644
View file @
fdf57734
<
IfModule
mod_ssl
.
c
>
<
IfModule
mod_rewrite
.
c
>
<
IfModule
mod_proxy
.
c
>
<
VirtualHost
*:
80
>
ServerName
{{
domain
}}
Redirect
permanent
/
https
://{{
domain
}}/
</
VirtualHost
>
<
VirtualHost
*:
443
>
ServerName
{{
domain
}}
SSLEngine
On
SSLProxyEngine
On
ProxyRequests
Off
ProxyPreserveHost
On
SSLCertificateFile
{{
path
}}/
server
.
cert
SSLCACertificateFile
{{
path
}}/
intermediate
.
cert
ProxyVia
full
RewriteEngine
On
<
Proxy
*>
Require
all
granted
</
Proxy
>
ProxyPass
/
alfmb
http
://
127
.
0
.
0
.
1
:
8080
/
alfresco
/
s
/
parashift
/
alfbi
/
proxymb
ProxyPassReverse
/
alfmb
http
://
127
.
0
.
0
.
1
:
8080
/
alfresco
/
s
/
parashift
/
alfbi
/
proxymb
ProxyPass
/
http
://
127
.
0
.
0
.
1
:
3000
/
ProxyPassReverse
/
http
://
127
.
0
.
0
.
1
:
3000
/
ProxyTimeout
{{
salt
[
'pillar.get'
](
'sslproxy:timeout'
,
600
) }}
</
VirtualHost
>
</
IfModule
>
</
IfModule
>
</
IfModule
>
alfbi-proxy/init.sls
0 → 100644
View file @
fdf57734
{% from "sslproxy/map.jinja" import apache with context %}
include:
- sslproxy
{{apache.etc.site}}/alfbi-proxy.conf:
file.managed:
- source: salt://alfbi-proxy/files/proxy.conf
- template: jinja
- context:
domain: {{pillar['metabase_domain']}}
path: {{apache.etc.dir}}
- require:
- pkg: {{apache.pkg}}
- watch_in:
- service: {{apache.pkg}}
{% if salt['grains.get']('os_family') == "Debian" %}
enable_site_alfbi_proxy:
cmd.run:
- name: a2ensite alfbi-proxy
- unless: a2query -s alfbi-proxy
- watch_in:
- service: apache2
- require:
- file: /etc/apache2/server.cert
- file: /etc/apache2/intermediate.cert
- file: {{apache.etc.site}}/alfbi-proxy.conf
{% endif %}