Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3779947
D1478.id3787.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1478.id3787.diff
View Options
diff --git a/roles/paas-docker/nginx/init.sls b/roles/paas-docker/nginx/init.sls
--- a/roles/paas-docker/nginx/init.sls
+++ b/roles/paas-docker/nginx/init.sls
@@ -8,3 +8,4 @@
include:
- .config
+ - .selinux
diff --git a/roles/paas-docker/nginx/selinux.sls b/roles/paas-docker/nginx/selinux.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/nginx/selinux.sls
@@ -0,0 +1,22 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-23
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% if grains['os_family'] == 'RedHat' %}
+
+# On Fedora and downstreams, SELinux restricts the capability
+# of HTTP server to connect to external servers.
+#
+# This feature allows nginx to connect to other servers,
+# and so to act as a front-end server through proxy_pass.
+
+httpd_can_network_connect:
+ selinux.boolean:
+ - value: True
+ - persist: True
+
+{% endif %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 10:47 (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264501
Default Alt Text
D1478.id3787.diff (1 KB)
Attached To
Mode
D1478: Allow nginx to connect to other servers
Attached
Detach File
Event Timeline
Log In to Comment