Commit Graph

291 Commits

Author SHA1 Message Date
Akira 23985a9fb8 add note for commands. (#407)
* add note for commands.

The all listed commands is seemingly bash commands, but the 2nd and latter is command for rails command prompt.

* fix from null to nil
2017-10-13 08:30:32 +02:00
Daggertooth afa7c148f0 Correct 'null' to 'nil' in reactivation section (#422)
Replaced this 'null' with a 'nil' so Ruby won't throw a NameError.
2017-10-13 08:23:54 +02:00
Sadiq Saif 86b4fe9cd5 Rename Security-Guide to Security-Guide.md (#417) 2017-10-09 13:39:44 +02:00
Sadiq Saif 7588d745fb Add Security Guide (#415) 2017-10-08 15:20:56 +02:00
Akira b197f69606 add ExecReload to reload puma. (#406)
* add ExecReload to reload puma.

This enables puma to reload changes without restarting process.

* fix path for command `kill`

* fix to bash.

* change to /bin/kill

* change from hot restart to phased restart.
2017-10-03 16:40:16 +02:00
Yuta Hiroto 80ced41f42 Update ruby version (#404) 2017-09-28 10:46:42 +02:00
Nolan Lawson c4023ea8f5 sw.js should be served with max-age=0 (#355)
This is a new requirement for Mastodon v1.5+; it's mentioned here: https://github.com/tootsuite/mastodon/releases/tag/v1.5.0rc1
2017-09-21 04:21:18 +02:00
Nolan Lawson 1ddceb13de Add migration guide (#396)
* Add migration guide

* Update Migration-guide.md based on PR feedback
2017-09-21 04:13:40 +02:00
Alda Marteau-Hardi d948bdff02 Add instruction to undelete a user. (#374)
* Add instruction to undelete a user.

* Domain is null for local accounts.
2017-09-19 16:35:36 +02:00
Patrick Figel e452628cae Use single quotes for pg user password (#398)
Double quotes are not syntactically correct here.
2017-09-19 16:17:15 +02:00
Jay Logan 3a7c9c3921 Don't include RCs in initial setup (#397)
Fixing the same issue as d9e523ec15 where the command is used in Production-guide.md
2017-09-17 00:19:02 +02:00
Daggertooth d9e523ec15 Don't include RCs when checking out latest tag. (#369)
``git tag -l | sort -V | head -1`` will consider release candidates as the latest version, even if there's a stable release, due to how `sort -V` orders strings. Adding ``grep -v 'rc[0-9]*$'`` to filter out the release candidate tags fixes this.
2017-09-11 02:01:41 +02:00
Eugen Rochko fe6a8ad49d Update Administration-guide.md 2017-09-10 02:46:14 +02:00
Eugen Rochko f29cb7a488 Update Administration-guide.md 2017-09-10 02:31:15 +02:00
Ryanak 22a7c57342 Fix typo (#388) 2017-09-07 19:08:30 +02:00
Sadiq Saif e1c01d42ea Add VAPID keys section to needed variables section (#385)
VAPID keys are necessary for Web Push notifications to work.

Also fix a small typo.
2017-08-26 18:53:14 +02:00
Sadiq Saif fcab2b3c97 "gcc-6" should just be "gcc" (#379)
* "gcc-6" should just be "gcc"

gcc-6 isn't a valid package name

* It was `adduser mastodon` for a reason

making it with `--system and --disabled-password` breaks the rest of the guide where `su - mastodon` is used.

I use this method as it makes maintaining the Mastodon instance easier.

* eval "$(rbenv init -)" should be in ~/.bashrc as well

otherwise the correct ruby version isn't used

* Use sudo su - instead
2017-08-20 22:50:51 +02:00
Mathias B 1e98a53c85 Move curl installation (#380)
Curl need to be installed before the first time we use it. It's now installed before setting up nodejs repository.
2017-08-19 18:58:57 +02:00
Mathias B 8b6eb84430 Reduce Git dependencies (#381)
Here we can use only git-core in place of git.
2017-08-19 18:58:31 +02:00
cybergene 735392fcbd fix typo (#377)
* Add how to create VAPID_PRIVATE_KEY and VAPID_PUBLIC_KEY

* fix typo
2017-08-17 14:47:24 +02:00
Mathias B b69b7fee1a Fix some mistakes (#373)
- Nginx duplication in packages installation
- Specify the user type for `mastodon` (--system and --disabled-password)
- Simplify services start-up
- Clearly write how to check services are running (or not) with `systemctl status`
2017-08-16 22:13:44 +02:00
cybergene 6e52a54bbf Add how to create VAPID_PRIVATE_KEY and VAPID_PUBLIC_KEY (#376) 2017-08-16 22:13:11 +02:00
Sadiq Saif 61e9d31031 Adding my new updating Mastodon guide (#367)
This is guide is for use with my recently merged Production Guide.
2017-08-03 23:51:08 +02:00
Sadiq Saif d8b2b52690 Add libicu-dev to Mastodon apt package list (#366)
libicu-dev was added with v1.5.0, updating guide with this dependency.
2017-08-03 22:45:13 +02:00
Akira fa49976371 Add emoji files for nginx cache rules. (#360)
Some cases such as nginx uses reverse proxy, emoji will return 502 if not set.
+  sort by A-z.
2017-07-30 12:54:26 +02:00
Nolan Lawson b16afa2094 Add libidn11-dev to Ubuntu package dependencies (#356)
This is now required as of Mastodon v1.5.0+ due to idn-ruby.
2017-07-29 14:19:08 +02:00
Sadiq Saif 88b89e61d9 Complete rewrite of Mastodon Production Guide (#352)
* Complete re-write of Mastodon Production Guide

I re-wrote the Mastodon Production Guide so that it has a better structure.

Work on this re-write was done on my own repo:
https://github.com/staticsafe/mastodon-documentation

* Fix typo in a heading

* Change node.js Repository section to use curl|bash method.
For simplicity's sake

* Add an explanation of the dependencies
Added in the "Various Other Dependencies" section.

* Fix links to the Ruby project, was using the link to Rails previously.
2017-07-28 18:18:01 +02:00
Akira dd52795d7d replace g++ for build essential (#354)
g++ doesn't provide necessary package for gem.
2017-07-28 04:37:05 +02:00
Shin Kojima a2352b569f `rbenv install 2.4.1` requires readline-devel (#334)
Tested on Ubuntu Server 16.04.2 LTS

See: https://github.com/rbenv/ruby-build/wiki#trouble-with-irb-or-pry

> * Trouble with irb or pry
>
> Try installing readline and recompiling Ruby.
>
>     Ubuntu: apt-get install libreadline-dev
>     Fedora: yum install readline-devel
2017-07-25 19:16:58 +02:00
Eugen Rochko ab041d036d Fix #325 2017-07-25 19:09:07 +02:00
Eugen Rochko 138a04befd Fix customization docs 2017-07-25 18:09:58 +02:00
Eugen Rochko f8386a5d1e Update list of rake tasks (#347) 2017-07-25 18:04:45 +02:00
Eugen Rochko d8a9f70920 Update Maintenance-Tasks.md 2017-07-25 17:40:04 +02:00
Komic 7ff7949c6c Apache - Updating paths for 1.5.0rc1 (#344) 2017-07-25 00:06:54 +02:00
sdukhovni e65ed605d3 Update index after adding yarn repository (#343) 2017-07-23 11:10:20 +02:00
kfir e0f6fb40b0 Update Development-guide.md (#340)
in order to install ruby-idn we need to make sure we have libidn installed.
2017-07-16 01:40:40 +02:00
Francis 0ffa554fdb Use the Yarn APT/YUM repository instead of npm (#337)
Found this seemed to work better in my experience and also allows for easy updating like any other package.
2017-07-12 02:28:57 +02:00
Sadiq Saif cc3b0e393d Add Let's Encrypt section (#335)
* Add Let's Encrypt section with a short guide to certificate tool installation, certificate generation and automated renewal.

* Use systemctl instead of service in LE section
This is for consistency reasons.
2017-07-11 00:06:03 +02:00
nightpool aa28bbc4b6 remove bit about cronjobs (#333)
this has been out of date for a few months now
2017-07-05 03:01:30 +02:00
のら 36065d56c0 Add list of Rake tasks (#331) 2017-07-04 15:26:54 +02:00
Ash Furrow e976e8c0c7 Adds `mastodon:media:remove_silenced` rake task (#329) 2017-07-02 20:14:40 +02:00
Luclu7 07dd12e873 New server 2017-07-01 05:43:40 +02:00
ik bca4ee4f06 Add the first step to clone. 2017-06-29 20:56:50 +09:00
Luclu7 5cba732c10 Added my instance (#323) 2017-06-27 11:56:37 +02:00
Wexpo Lyu 3d88f71e21 Mention that we can use prebuilt images in docs. (#313)
* Mention that we can use prebuilt images.

Instead of building our own.

* Mention that we need to comment out `build`.

If we want to use prebuilt.
2017-06-27 11:53:59 +02:00
bovarysme e191aaa7a3 Remove the cronjobs section from the production guide 2017-06-25 07:52:20 +02:00
wxcafé 39fe30df48 Update Production-guide.md
Fixes the problem where the `mastodon` user has /bin/false as a shell and so `sudo -iu` won't do anything
2017-06-20 13:39:20 +02:00
Hayato IZUMI 06fc3e68c5 Remove unavailable package from General dependencies for CentOS / RHEL 2017-06-18 13:52:27 +09:00
Charlotte Fields eb317b35bb added some missing info to prod. (#306)
* added some missing info

* changed login and user creation

* corrected user creation and login

hopefully
2017-06-17 15:16:48 +02:00
Charlotte Fields db5c961282 small doc fix (#307) 2017-06-17 14:30:28 +02:00
Aral Balkan 61d6d17904 Update command to checkout latest release.
The git tag command was incorrectly checking out release candidates instead of the latest release. Fixes #309
2017-06-15 17:22:04 +02:00
Benoît S 445dc18cd9 Missing RAILS_ENV=production and bundle exec
If you're omitting RAILS_ENV and `bundle exec` you'll have:

~~~
rake aborted!                             
NameError: uninitialized constant Annotate
[…]
~~~
2017-06-14 17:40:01 +02:00
Raphael Lullis 491e44c346 Create Serving_a_different_domain.md
The location directive was missing the "=" operator.
2017-06-11 03:55:38 +02:00
Valentin Lorentz e2fcb2f407 Update resources of oc.todon.fr 2017-06-04 17:24:38 +02:00
zunda 58d6dcb46a Remove the procedure to run `rake secret` outside the container
This change will help users avoid unnecessary procedure to
complete `bundle install` outside the container.

The explanation

> To generate the PAPERCLIP_SECRET, SECRET_KEY_BASE, and
> OTP_SECRET, you may use:
>
> ```
> rake secret
> ```

gives users a false impression that secrets have to be filled in
before the image can be built. Here, with introduction of CLD3,
completion of `bundle install` became more involved procedure to
prepare tools and libraries as well as higher version of Ruby.
2017-06-02 21:19:30 -10:00
USAMI Kenta e8bcf6a035 Explicitly use --provider option for vagrant up
When a provider other than virtualbox is registered in Vagrant, `vagrant up` can not start Mastodon.
For example, it corresponds to the environment where Parallels Desktop is installed.
2017-05-31 12:52:03 +09:00
koug44 473152c792 Update on apache configuration
Added the needed ProxyPass exceptions for 1.4.1
2017-05-29 17:32:17 -04:00
Myles Braithwaite 2da7d4fc0a Needed pkg-config to install cld3.
In Debian the package `pkg-config` is required to install the rubygem `cld3`.
2017-05-29 14:36:32 -04:00
Eugen Rochko cc88ba21df Merge pull request #272 from tootsuite/fix-custom-scss
Update customization guide
2017-05-27 16:55:17 +02:00
Eugen Rochko d892b9ff8f Update customization guide 2017-05-27 16:51:28 +02:00
Eugen Rochko 8b5d2ba471 Fix API docs by adding missing attributes and methods, fix example
nginx config by removing overly specific configuration options
that confuse more than they help
2017-05-26 17:29:47 +02:00
Michael Smith 4b2ae4a9bd
Add snippet in dev guide about manage:translations 2017-05-25 22:54:32 -07:00
Eugen Rochko d17b64e130 Merge pull request #129 from danhunsaker/feature/nanobox
Document Nanobox Usage
2017-05-23 16:57:23 +02:00
Nolan Lawson 6b29d736ec s/assets/packs/
`assets` are now at `packs`. Unfortunately this change will permanently cache `stats.json` and `report.html`, but these aren't super critical since they're just for debugging. I confirmed that `manifest.json` is not affected and no other non-fingerprinted assets are affected.
2017-05-22 20:07:40 -07:00
Diana Thayer 887837ab87 Update Development-guide.md
Since the document specifies the `--pure-lockfile` flag, it seems inaccurate to say, "Similarly, installing JavaScript dependencies doesn't require any flags."

I've changed the text accordingly. I hope it's appropriate!
2017-05-21 22:57:17 -07:00
Eugen Rochko 770c90da74 Merge pull request #239 from jeroenpraat/patch-2
explaining DB_POOL better
2017-05-22 04:23:21 +02:00
Eugen Rochko b71e181661 Merge pull request #244 from seefood/patch-1
dependencies and webpacker
2017-05-22 04:21:43 +02:00
Eugen Rochko f4e6c29a53 Update Development-guide.md 2017-05-22 04:21:32 +02:00
Eugen Rochko 9a89190202 Update Development-guide.md 2017-05-22 04:20:26 +02:00
Eugen Rochko c29f6f2ee6 Update Development-guide.md 2017-05-22 04:19:33 +02:00
Chad Ingram d0b9bb8801 Update Development-guide.md
Add protobuf to brew install line - needed by cld3
2017-05-17 00:08:04 -04:00
Eugen Rochko afaa3feda1 Merge pull request #251 from aral/mac-development-environment-instructions
Mac development environment instructions
2017-05-16 16:56:15 +02:00
Aral Balkan ab538eeb51
Fix typo on Mac developer guide 2017-05-16 16:45:40 +02:00
Aral Balkan 0f26e2962a
Cosmetic: removed trailing line in code on Mac dev guide 2017-05-16 16:31:44 +02:00
Aral Balkan 9de932c427
Change order of prerequisites in Mac development guide
Xcode commandline tools need to be installed before ffmpeg is
as they’re used to compile it.
2017-05-16 16:20:03 +02:00
Aral Balkan 34071d26d0
Improve running instructions in Mac development guide (#250) 2017-05-16 16:09:37 +02:00
Aral Balkan c84f141e22
Add Mac development environment setup instructions. Closes #250 2017-05-16 16:04:50 +02:00
Myles Braithwaite 9f752db5e0 Added note about adding backports on Debian. (#249)
Added a note about having to add Debian Backports repository to properly install `ffmpeg`.
2017-05-15 16:24:12 -07:00
Ira Abramov acf56f2266 Webpacker addition after v1.3.3 requires a documentation as well. 2017-05-13 18:48:49 +03:00
Ira 3f4db4fe31 Packages that were needed in my dev env
Packages that were needed in my dev env
2017-05-13 18:11:55 +03:00
Luc Didry 70bddee7d3 Add munin plugins repositories 2017-05-11 11:23:32 +02:00
Valentin Lorentz 2c51aa53f8 Add missing queue to the sidekiq command 2017-05-10 19:21:51 +02:00
jeroenpraat 1c5e3bce14 explaining DB_POOL better 2017-05-10 16:29:26 +02:00
Akihiko Odaki 00f401ba6f Update "Customizing your instance" according to a change in Mastodon (#234)
This change reflects commit af6a84da147f4230807b37c64bc09760e6ab5055 in
mastodon repository.
2017-05-10 15:47:03 +02:00
Akihiko Odaki 124598b206 Add dependencies for CLD3 (#235)
This reflects commit d5cabfe5c65ac29d2f9c151b46c01a9fd885a9e0 in mastodon
repository.
2017-05-10 15:46:17 +02:00
Isao Sugimoto e97ec8f8ff more better instructions of debian jessie-backports (#232)
* more better instructions of debian jessie-backports

* minor fix
2017-05-09 09:10:10 -07:00
Ash Furrow 3ad0c4ab19 Updates for Docker documentation. See discussion in #136. (#214) 2017-05-09 10:12:02 +02:00
Darius Kazemi 03ee8bedfa Add a Debian 8 installation note (#223)
* Add a Debian 8 installation note

According to the conversation in f0a863feec, Debian 8 installs
an older version of nginx by default. This adds a note telling people
how to install a newer one.

* updating wording
2017-05-09 08:10:16 +02:00
Darius Kazemi 2be17b694c Merge pull request #193 from alifianmahardhika/patch-1
Update Vagrant-guide.md
2017-05-08 11:33:09 -07:00
Darius Kazemi 5b91212370 Merge pull request #204 from nolanlawson/fwenzel-patch-1
Add default CSP (take 2)
2017-05-08 11:16:49 -07:00
Nolan Lawson 8a57435b88 remove referrer-policy: strict-origin-when-cross-origin 2017-05-07 19:42:46 -07:00
Nolan Lawson 444beff404 remove unsafe-inline from script-src 2017-05-07 19:34:52 -07:00
Jarek Lipski 443ee05b75 Remove duplicate line in Administration guide 2017-05-07 22:41:19 +02:00
Darius Kazemi 234175e30a Merge pull request #210 from tootsuite/Gargron-patch-1
Fix Node.js installation recommendation, also use 6.x
2017-05-07 10:15:22 -07:00
Eugen Rochko 50edeb67e2 Merge pull request #196 from kagucho/master
Use "sudo -u" instead of "sudo su"
2017-05-07 14:45:59 +02:00
Eugen Rochko 1f202dedc1 Merge pull request #203 from wolfyshy/master
Update Apache configuration a bit
2017-05-07 00:51:34 +02:00
Eugen Rochko a8da345a79 Merge pull request #209 from suoko/patch-1
Updated Administration-guide.md
2017-05-07 00:45:13 +02:00
Eugen Rochko 530ce36181 Merge pull request #212 from suoko/patch-2
Update Administration-guide.md
2017-05-07 00:43:43 +02:00
Eugen Rochko 07309d26dd Merge pull request #202 from takayamaki/fix_pgbouncer_guide
fix section "Configuring userlist.txt" of PgBouncer-guide.md
2017-05-07 00:42:03 +02:00
takayamaki 0b79565316 fix section "Configuring userlist.txt" of PgBouncer-guide.md
fix order of username and password when generating hash with md5sum
https://pgbouncer.github.io/config.html#authentication-file-format
2017-05-07 05:09:42 +09:00