Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3752995
D1456.id3737.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D1456.id3737.diff
View Options
diff --git a/pillar/webserver/sites.sls b/pillar/webserver/sites.sls
--- a/pillar/webserver/sites.sls
+++ b/pillar/webserver/sites.sls
@@ -53,6 +53,12 @@
web_php_sites:
# Nasqueron members
+ mediawiki.dereckson.be:
+ domain: dereckson.be
+ subdomain: mediawiki
+ user: web-be-dereckson-mw
+ php-fpm: prod
+
www.dereckson.be:
domain: dereckson.be
subdomain: www
diff --git a/pillar/webserver/wwwroot51.sls b/pillar/webserver/wwwroot51.sls
--- a/pillar/webserver/wwwroot51.sls
+++ b/pillar/webserver/wwwroot51.sls
@@ -12,6 +12,9 @@
user: dereckson
group: dereckson
repository: ssh://vcs@devcentral.nasqueron.org:5022/source/api.git
+ mediawiki-dereckson:
+ user: dereckson
+ group: dereckson
rain:
user: dereckson
group: dereckson
diff --git a/roles/webserver-legacy/nginx/files/vhosts/dereckson.be/mediawiki.conf b/roles/webserver-legacy/nginx/files/vhosts/dereckson.be/mediawiki.conf
new file mode 100644
--- /dev/null
+++ b/roles/webserver-legacy/nginx/files/vhosts/dereckson.be/mediawiki.conf
@@ -0,0 +1,70 @@
+# -------------------------------------------------------------
+# Webserver
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Site: mediawiki.dereckson.be
+# License: Trivial work, not eligible to copyright
+# Source file: roles/webserver-legacy/nginx/files/vhosts/dereckson.be/mediawiki.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 mediawiki.dereckson.be;
+
+ include includes/letsencrypt;
+
+ return 301 https://mediawiki.dereckson.be$request_uri;
+}
+
+server {
+ server_name mediawiki.dereckson.be;
+
+ include includes/tls;
+ ssl_certificate /usr/local/etc/letsencrypt/live/mediawiki.dereckson.be/fullchain.pem;
+ ssl_certificate_key /usr/local/etc/letsencrypt/live/mediawiki.dereckson.be/privkey.pem;
+
+ error_log /var/log/www/dereckson.be/mediawiki-error.log;
+ access_log /var/log/www/dereckson.be/mediawiki-access.log;
+
+ root /var/51-wwwroot/mediawiki-dereckson;
+ index index.html index.php;
+
+ location / {
+ try_files $uri $uri/ /index.php?$query_string;
+ }
+
+ location /images {
+ alias /var/dataroot/$server_name/images;
+ }
+
+ location ~ ^/images/thumb/(archive/)?[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ {
+ #Note: this doesn't work with InstantCommons.
+ if (!-f $request_filename) {
+ rewrite ^/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /thumb.php?f=$1&width=$2;
+ rewrite ^/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /thumb.php?f=$1&width=$2&archived=1;
+ }
+ }
+
+ location /images/deleted { deny all; }
+ location /cache { deny all; }location /languages { deny all; }
+ location /maintenance { deny all; }
+ location /serialized { deny all; }
+ location ~ /.(svn|git)(/|$) { deny all; }
+ location ~ /.ht { deny all; }
+ location /mw-config { deny all; }
+
+ location ~ \.php$ {
+ try_files $uri =404;
+ fastcgi_pass unix:/var/run/web/mediawiki.dereckson.be/php-fpm.sock;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ include includes/fastcgi_params;
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 22:28 (18 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2251368
Default Alt Text
D1456.id3737.diff (3 KB)
Attached To
Mode
D1456: Serve mediawiki.dereckson.be on devserver
Attached
Detach File
Event Timeline
Log In to Comment