diff options
| author | magikcypress <cyp@rouquin.me> | 2017-04-16 16:08:42 +0200 |
|---|---|---|
| committer | magikcypress <cyp@rouquin.me> | 2017-04-16 16:08:42 +0200 |
| commit | 2be310eefa3f86efba61a6df79fa70edf8cd20e8 (patch) | |
| tree | 5c6e677f2e7dc8eda3b5f450120d8cc5a72c1d50 /conf | |
| parent | 9bddc797b46855a64e0a4e943dd3480f84b8b5a4 (diff) | |
| download | mastodon_ynh-2be310eefa3f86efba61a6df79fa70edf8cd20e8.tar.gz mastodon_ynh-2be310eefa3f86efba61a6df79fa70edf8cd20e8.tar.bz2 mastodon_ynh-2be310eefa3f86efba61a6df79fa70edf8cd20e8.zip | |
[fix] Clear code & fix install
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/crontab_mastodon | 5 | ||||
| -rw-r--r-- | conf/nginx.conf | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/conf/crontab_mastodon b/conf/crontab_mastodon index f6794fb..62caff0 100644 --- a/conf/crontab_mastodon +++ b/conf/crontab_mastodon @@ -1,4 +1,7 @@ @daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:media:clear + @daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:push:refresh + @daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:feeds:clear -@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:users:clear
\ No newline at end of file + +@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:users:clear diff --git a/conf/nginx.conf b/conf/nginx.conf index 8ab2b9f..5ce3d7a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,4 @@ -location __PATH__ { +location / { if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; |
