Template:Installation/Configuration: Difference between revisions

From diaspora* project wiki
(Clarify how to change database.yml)
(yml -> toml)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Now open <tt>config/database.yml</tt> and <tt>config/diaspora.yml</tt> in your favorite text editor and carefully review them, they are extensively commented.  
Now open <tt>config/database.yml</tt> and <tt>config/diaspora.toml</tt> in your favorite text editor and carefully review them, they are extensively commented.  


=== Important values in config/database.yml ===
=== Important values in config/database.toml ===


{{#ifeq: {{#var:DB}}|mysql|* '''common''' Make sure to enable mysql!}}
{{#ifeq: {{#var:DB}}|mysql|* '''common''' Make sure to enable mysql!}}
Line 8: Line 8:
* '''password''' Make sure to use the right password for the user your created for diaspora.
* '''password''' Make sure to use the right password for the user your created for diaspora.


=== Important values in config/diaspora.yml ===
=== Important values in config/diaspora.toml ===


* '''environment.url''': Set the '''public facing''' URL to your pod here, for example for https://pod.geraspora.de this would be <tt>https://pod.geraspora.de</tt>
* '''configuration.environment.url''': Set the '''public facing''' URL to your pod here, for example for https://pod.geraspora.de this would be <tt>https://pod.geraspora.de</tt>
* '''environment.certificate_authorities''': You have to set this, one of the examples should fit. If the file in the example doesn't exist you're missing a package, in most cases it's named <tt>ca-certificates</tt>.
* '''configuration.environment.certificate_authorities''': You have to set this, one of the examples should fit. If the file in the example doesn't exist you're missing a package, in most cases it's named <tt>ca-certificates</tt>.
* '''server.rails_environment''': You '''must''' set this to <tt>{{#var:mode}}</tt>. The <tt>server</tt> section is read by <tt>./script/server</tt> and most alternative startup methods to setup the correct environment.
* '''configuration.server.rails_environment''': You '''must''' set this to <tt>{{#var:mode}}</tt>. The <tt>server</tt> section is read by <tt>./script/server</tt> and most alternative startup methods to setup the correct environment.
* '''environment.require_ssl''': If for some reason you can't run your pod on HTTPS (we highly encourage you to do it!), set this to <tt>false</tt> to prevent a redirect from <tt>http://</tt> to <tt>https://</tt>
* '''environment.require_ssl''': If for some reason you can't run your pod on HTTPS (we highly encourage you to do it!), set this to <tt>false</tt> to prevent a redirect from <tt>http://</tt> to <tt>https://</tt>
[[Category:Templates]]

Latest revision as of 07:17, 3 June 2021

Now open config/database.yml and config/diaspora.toml in your favorite text editor and carefully review them, they are extensively commented.

Important values in config/database.toml

  • username Make sure to use the right username you created for diaspora.
  • password Make sure to use the right password for the user your created for diaspora.

Important values in config/diaspora.toml

  • configuration.environment.url: Set the public facing URL to your pod here, for example for https://pod.geraspora.de this would be https://pod.geraspora.de
  • configuration.environment.certificate_authorities: You have to set this, one of the examples should fit. If the file in the example doesn't exist you're missing a package, in most cases it's named ca-certificates.
  • configuration.server.rails_environment: You must set this to . The server section is read by ./script/server and most alternative startup methods to setup the correct environment.
  • environment.require_ssl: If for some reason you can't run your pod on HTTPS (we highly encourage you to do it!), set this to false to prevent a redirect from http:// to https://