diff --git a/import.yml b/import.yml index 86d9a42..e37ba05 100644 --- a/import.yml +++ b/import.yml @@ -1,4 +1,4 @@ -## saint v0.4.1 +## saint v0.5 ## this is the all-in-one, standalone Discourse Docker container template ## ## After making changes to this file, you MUST rebuild @@ -111,12 +111,41 @@ hooks: cd: /var/www/discourse/script/import_scripts cmd: - apt-get install -y vim + ## Get migration-import scripts in place - git clone https://gitea.federated.computer/saint/discourse-import_scripts.git - chown -R discourse:discourse discourse-import_scripts/*.rb - ln -s discourse-import_scripts gossamer - #- cp -a /shared/slowtwitch/import_scripts/goss*.rb /var/www/discourse/script/import_scripts/ - #- mkdir /var/www/discourse/plugins/md5_authentication - #- cp -a /shared/slowtwitch/md5_authentication/plugin.rb /var/www/discourse/plugins/plugin.rb + ## Basic site config + - rails r "SiteSetting.title='Slowtwitch'" + - rails r "SiteSetting.site_description='The source for triathlon and multisport news, tips and technology.'" + - rails r "SiteSetting.contact_email='info@slowtwitch.com'" + - rails r "SiteSetting.contact_url='https://www.slowtwitch.com/'" + - rails r "SiteSetting.company_name='Slowtwitch Inc.'" + - rails r "SiteSetting.governing_law='California law'" + - rails r "SiteSetting.city_for_disputes='Valyermo, CA'" + ## These allow for successful migration-import from Gossamer Forums and can be disabled afterwards, or when migration is finalized. + - rails r "SiteSetting.blocked_email_domains=[]" + - rails r "SiteSetting.min_username_length=2" + - rails r "SiteSetting.min_password_length=8" + - rails r "SiteSetting.min_post_length=1" + - rails r "SiteSetting.min_first_post_length=1" + - rails r "SiteSetting.min_personal_message_post_length=1" + - rails r "SiteSetting.body_min_entropy=0" + - rails r "SiteSetting.min_topic_title_length=1" + - rails r "SiteSetting.title_min_entropy=0" + - rails r "SiteSetting.rate_limit_create_topic=0" + - rails r "SiteSetting.rate_limit_create_post=0" + - rails r "SiteSetting.rate_limit_new_user_create_post=0" + - rails r "SiteSetting.min_personal_message_title_length=1" + ## Present in our test-dev config, but not sure if this is needed... + - rails r "SiteSetting.allowed_iframes='#{SiteSetting.allowed_iframes}, https://slowtwitch.northend.network/discobot/certificate.svg'" + ## Commented out... + ##- rails r "SiteSetting.navigation_menu='header_dropdown'" + ##- rails r "SiteSetting.default_navigation_menu_categories=['Site Feedback', 'Staff', 'General']" + ##- rails r "SiteSetting.default_compose_category='Triathlon Forum'" + ##- cp -a /shared/slowtwitch/import_scripts/goss*.rb /var/www/discourse/script/import_scripts/ + ##- mkdir /var/www/discourse/plugins/md5_authentication + ##- cp -a /shared/slowtwitch/md5_authentication/plugin.rb /var/www/discourse/plugins/plugin.rb ## Any custom commands to run after building