Page MenuHomeDevCentral

D2611.id.diff
No OneTemporary

D2611.id.diff

diff --git a/roles/paas-docker/nginx/files/vhosts/bugzilla.conf b/roles/paas-docker/nginx/files/vhosts/bugzilla.conf
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/nginx/files/vhosts/bugzilla.conf
@@ -0,0 +1,45 @@
+# -------------------------------------------------------------
+# Configuration for Docker PaaS front-end nginx
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Author: Sébastien Santoro aka Dereckson
+# Source file: roles/paas-docker/nginx/files/vhosts/bugzilla.conf
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+server {
+ listen 80;
+ listen [::]:80;
+ server_name {{ fqdn }};
+
+ include includes/letsencrypt;
+
+ return 301 https://$host$request_uri;
+}
+
+server {
+ server_name {{ fqdn }};
+
+ include includes/tls;
+ ssl_certificate /srv/letsencrypt/etc/live/{{ fqdn }}/fullchain.pem;
+ ssl_certificate_key /srv/letsencrypt/etc/live/{{ fqdn }}/privkey.pem;
+
+ include includes/letsencrypt;
+
+ location / {
+ # Bug short URLs - allow URL like /42
+ rewrite ^/([0-9]+)$ /show_bug.cgi?id=$1;
+
+ proxy_pass http://localhost:{{ app_port }};
+ include includes/proxy_params;
+ }
+
+ root /var/wwwroot-502/_default;
+ error_page 502 /502.html;
+ location /502.html {}
+}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 07:20 (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246191
Default Alt Text
D2611.id.diff (1 KB)

Event Timeline