Commit Graph

51 Commits

Author SHA1 Message Date
Râu Cao 063858f06c
Install imagemagick for mediawiki thumbnail generation 2023-02-01 18:17:39 +08:00
Râu Cao cd4d21efc8
Remove superfluous license header 2023-02-01 18:17:29 +08:00
Râu Cao 991458208d
Use a role for configuring LDAP hostname on clients
This way it's also easy to converge all LDAP clients at once.
2022-11-26 16:45:45 +01:00
Râu Cao 6d50a32aca
Add FIXME note 2022-10-19 12:08:05 +02:00
Greg 0d133de1b8 New config and credentials for LDAP connection in mediawiki 2022-05-11 16:23:17 +02:00
Basti 4f5b005087
Send wiki notifications to new info XMPP room 2020-10-20 15:46:58 +02:00
Greg 7eaf177bb2 Set the autocreate permission for Mediawiki users
This allows LDAP sign ins to create an account automatically

Fixes #219
2020-10-06 15:51:01 +02:00
Basti b7e2a72369
Add missing changes for mediawiki upgrades 2020-09-05 23:43:28 +02:00
Basti 38c6a1ae15
Update mediawiki, install extensions from git repos 2020-08-30 17:59:45 +02:00
Greg d7363d662b Switch the Mediawiki extensions to GitHub zips
This fixes the annoying issue of Mediawiki only keeping one revision of
each branch
2020-03-04 16:03:12 +01:00
Greg c4fdf1779f Remove the CleanTalk Antispam extension
It is not needed anymore now that registration is closed and only LDAP
accounts can edit or create pages

Closes #130
2020-02-20 14:31:39 +01:00
Greg 6f7474b4d1 Update the Mediawiki extensions 2020-02-20 14:30:25 +01:00
Greg 276daf0ed7 Switch the Mediawiki config to the new LDAP dir structure
* Use a new read-only account instead of the admin LDAP account
* Disable the LDAPAuthorization plugin. The LDAPAuthentication2 plugin
is still used to authenticate users, but every kosmos.org user has
access to the wiki. See
https://www.mediawiki.org/wiki/Extension:PluggableAuth for the
distinction between authentication and authorization

Refs #127
2020-02-19 12:29:14 +01:00
Greg 2a66ff6146 Enable the Cite extension in the MediaWiki config
This is used to create references as footnotes.
See https://www.mediawiki.org/wiki/Extension:Cite

Closes #124
2020-01-29 14:30:39 +01:00
Greg a06ea47e58 Update the LDAPProvider extension 2020-01-28 13:54:57 +01:00
Greg a69192a863 Enable LDAP support on mediawiki
Users can log in using their LDAP account (in the
ou=users,dc=kosmos,dc=org group and with the wiki attribute set to
enabled)

Add an attribute for the ldap master server, so it can be overridden in
the development environment

Refs #107
2020-01-24 13:45:17 +01:00
Basti 11c7019bfa
Fix thumbnails not working for larger SVGs
See linked docs in code comments
2019-12-13 13:46:57 +01:00
Basti 2358ed00db
Fix wiki permissions 2019-12-13 13:41:48 +01:00
Basti cbfb760787
Increase wiki file upload size limit 2019-12-13 13:41:48 +01:00
Basti 2158e1d4bf
Allow SVG file uploads 2019-12-13 13:41:48 +01:00
Basti 678286d758
Enable wiki editor toolbar
Enables the formatting toolbar for the wiki editor.
2019-11-26 22:04:49 +01:00
Basti d3b07c59bf
Don't notify on minor wiki edits
New config available, which prevents chat notifications on minor edits.
2019-06-25 14:29:55 +02:00
Basti fff5a044fe
Update/fix hubot URL, move variables to attributes 2019-06-25 14:29:11 +02:00
Greg 5bb34554a7 The nginx_certbot_site resource does nothing in the dev environment
No need to check for the environment in recipes that use the resource

Closes #54
2019-05-03 10:55:02 +02:00
Greg 57d0885d26 Change the licenses of hte kosmos cookbooks to MIT 2019-04-12 11:41:20 +02:00
Greg 7bf583b5a3 Update Mediawiki to 1.32.0 2019-04-08 11:22:24 +02:00
Greg 96cb3794f9 Don't try to enable TLS in the development environment 2019-04-08 11:21:45 +02:00
Greg 17f1b2a20a Create a nginx_certbot_site resource to remove duplication
It creates a folder, the nginx vhost for certbot and HTTP redirects, and
also runs certbot and recreates the nginx vhost that includes the TLS
cert
2019-03-15 19:03:28 +01:00
Greg 36e046ea73 Run certbot using the binary provided by the Ubuntu PPA 2019-03-14 10:52:44 +01:00
Basti 19ad46036f
Update Cleantalk extension to latest version
Running on the server already
2019-03-04 18:22:29 +07:00
Basti af6fe37e0b Add Composer, Mermaid extension 2018-06-01 17:04:15 +02:00
Basti 1515b98a17 Update Cleantalk Antispam version 2018-06-01 12:56:39 +02:00
Greg 0bb6204a0d Fix the Let's Encrypt setup for mediawiki 2017-06-19 18:40:20 +02:00
Greg 49a9625d16 Just use plain HTTP in development environment 2017-06-09 21:20:00 +02:00
Greg 5385813eda Merge branch 'master' into feature/ubuntu-16.04 2017-06-09 16:36:19 +02:00
Greg eaaaacf97f Remove placeholder text from generated Chef cookbooks 2017-05-08 12:07:32 +02:00
Greg 2f0ff1f559 Fixed code styling 2017-04-28 15:45:59 +02:00
Greg 6bea5b7567 Enable HTTP2 and HSTS 2017-04-07 18:20:43 +02:00
Greg de11c0d691 Set up an instance of Mastodon for Kosmos
Refs #19

Use new application cookbook, update our cookbooks
2017-04-06 21:20:51 +02:00
Greg 827a7428e2 Update kosmos-mediawiki cookbook for Ubuntu 16.04 2017-03-31 19:21:00 +02:00
Greg f1e042d23a Update mediawiki
Also add a comment about running the update script
2017-03-25 12:32:02 +01:00
Greg 9436284be2 Use the latest certbot instead of the old letsencrypt 2017-03-19 20:05:09 +00:00
Greg 58604212ec Mitigate the httpoxy vulnerability
https://httpoxy.org
2016-07-28 12:28:13 +02:00
Greg e7f10a98b6 Update mediawiki to 1.27.0 2016-07-28 12:25:17 +02:00
Greg 10b1bff3c0 Update CleanTalk extension to 1.7
Fixes #7
2016-07-08 14:00:34 +02:00
Greg 7a53617302 Add automatic daily backup of mediawiki and wordpress databases 2016-05-13 17:12:24 +02:00
Greg 0aaf3f3b55 Initial Let's Encrypt setup for Kosmos subdomains
Refs #6
2016-05-06 16:41:50 +02:00
Greg 3da46705ba Add base URL to Mediawiki Hubot extension
Fixes #5
2016-05-06 16:40:37 +02:00
Greg 0c97c218e6 Add mediawiki-hubot extension to wiki
Fixes #4
2016-04-22 14:32:05 +02:00
Greg 78708414f4 Replace the default boilerplate cookbook maintainer and email
Also add it to knife.rb so new cookbooks are generated with the right
ones
2016-04-22 12:49:24 +02:00