Fix group

Fix scrypt time for production
Fix nginx template path
This commit is contained in:
Ari Timonen 2020-04-06 06:51:27 +03:00
parent 2628cfe10e
commit bfd866fa88
3 changed files with 5 additions and 2 deletions

View file

@ -5,6 +5,8 @@ RAILS_ENV=production
ASSETS_PRECOMPILE=1
SCRYPT_MAX_TIME=0.5
# FIXME Disable workers + cluster mode for now.
PUMA_WORKERS=0
PUMA_MIN_THREADS=1

View file

@ -30,9 +30,10 @@ class Group < ActiveRecord::Base
validates_length_of :name, :maximum => 20
has_and_belongs_to_many :users
has_many :groupers
has_many :users, :through => :groupers
has_and_belongs_to_many :users
belongs_to :founder, :class_name => "User", :optional => true
def to_s

View file

@ -67,7 +67,7 @@ server {
}
location /files/ {
# try_files $uri $uri/ @puma;
# alias root /var/www/files/;
# alias root /var/www/public/files/;
autoindex on;
}
location @puma {