synapse-rubycas-server 1.1.4.pre → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/Gemfile +2 -21
- data/Rakefile +0 -6
- data/bin/rubycas-server +26 -12
- data/config.ru +1 -2
- data/config/unicorn.rb +88 -0
- data/lib/casserver.rb +1 -2
- data/lib/casserver/cas.rb +4 -330
- data/lib/casserver/server.rb +8 -4
- data/lib/casserver/views/_login_form.erb +36 -15
- data/lib/casserver/views/layout.erb +4 -40
- data/lib/casserver/views/login.erb +27 -13
- data/locales/en.yml +3 -17
- data/public/themes/cas.css +0 -2
- data/public/themes/simple/theme.css +28 -0
- data/spec/casserver_spec.rb +1 -1
- data/spec/config/default_config.yml +1 -1
- metadata +12 -146
- data/bin/cap +0 -16
- data/bin/capify +0 -16
- data/bin/foreman +0 -16
- data/bin/lessc +0 -16
- data/bin/rackup +0 -16
- data/bin/rake2thor +0 -16
- data/bin/therubyracer +0 -16
- data/bin/thor +0 -16
- data/bin/tilt +0 -16
- data/bin/unicorn +0 -16
- data/bin/unicorn_rails +0 -16
- data/config/deploy.rb +0 -36
- data/config/deploy/production.rb +0 -4
- data/config/deploy/staging.rb +0 -4
- data/config/recipes/base.rb +0 -8
- data/config/recipes/git.rb +0 -10
- data/config/recipes/nginx.rb +0 -28
- data/config/recipes/puma.rb +0 -38
- data/config/recipes/rubycas.rb +0 -11
- data/config/recipes/templates/nginx.erb +0 -43
- data/config/recipes/templates/puma.erb +0 -13
- data/config/recipes/templates/rubycas.erb +0 -114
- data/config/unicorn/development.rb +0 -14
- data/config/unicorn/production.rb +0 -14
- data/config/unicorn/staging.rb +0 -14
- data/public/app.css +0 -9641
- data/public/assets/fontawesome-webfont.eot +0 -0
- data/public/assets/fontawesome-webfont.svg +0 -255
- data/public/assets/fontawesome-webfont.ttf +0 -0
- data/public/assets/fontawesome-webfont.woff +0 -0
- data/public/assets/gothamhtf-black-webfont.eot +0 -0
- data/public/assets/gothamhtf-black-webfont.svg +0 -241
- data/public/assets/gothamhtf-black-webfont.ttf +0 -0
- data/public/assets/gothamhtf-black-webfont.woff +0 -0
- data/public/assets/gothamhtf-blackitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-blackitalic-webfont.svg +0 -241
- data/public/assets/gothamhtf-blackitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-blackitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-bold-webfont.eot +0 -0
- data/public/assets/gothamhtf-bold-webfont.svg +0 -241
- data/public/assets/gothamhtf-bold-webfont.ttf +0 -0
- data/public/assets/gothamhtf-bold-webfont.woff +0 -0
- data/public/assets/gothamhtf-bolditalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-bolditalic-webfont.svg +0 -241
- data/public/assets/gothamhtf-bolditalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-bolditalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-book-webfont.eot +0 -0
- data/public/assets/gothamhtf-book-webfont.svg +0 -241
- data/public/assets/gothamhtf-book-webfont.ttf +0 -0
- data/public/assets/gothamhtf-book-webfont.woff +0 -0
- data/public/assets/gothamhtf-bookitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-bookitalic-webfont.svg +0 -241
- data/public/assets/gothamhtf-bookitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-bookitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-light-webfont.eot +0 -0
- data/public/assets/gothamhtf-light-webfont.svg +0 -241
- data/public/assets/gothamhtf-light-webfont.ttf +0 -0
- data/public/assets/gothamhtf-light-webfont.woff +0 -0
- data/public/assets/gothamhtf-lightitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-lightitalic-webfont.svg +0 -241
- data/public/assets/gothamhtf-lightitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-lightitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-medium-webfont.eot +0 -0
- data/public/assets/gothamhtf-medium-webfont.svg +0 -241
- data/public/assets/gothamhtf-medium-webfont.ttf +0 -0
- data/public/assets/gothamhtf-medium-webfont.woff +0 -0
- data/public/assets/gothamhtf-thin-webfont.eot +0 -0
- data/public/assets/gothamhtf-thin-webfont.svg +0 -241
- data/public/assets/gothamhtf-thin-webfont.ttf +0 -0
- data/public/assets/gothamhtf-thin-webfont.woff +0 -0
- data/public/assets/gothamhtf-thinitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-thinitalic-webfont.svg +0 -241
- data/public/assets/gothamhtf-thinitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-thinitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-ultra-webfont.eot +0 -0
- data/public/assets/gothamhtf-ultra-webfont.svg +0 -241
- data/public/assets/gothamhtf-ultra-webfont.ttf +0 -0
- data/public/assets/gothamhtf-ultra-webfont.woff +0 -0
- data/public/assets/gothamhtf-ultraitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-ultraitalic-webfont.svg +0 -241
- data/public/assets/gothamhtf-ultraitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-ultraitalic-webfont.woff +0 -0
- data/public/assets/gothamhtf-xlight-webfont.eot +0 -0
- data/public/assets/gothamhtf-xlight-webfont.svg +0 -241
- data/public/assets/gothamhtf-xlight-webfont.ttf +0 -0
- data/public/assets/gothamhtf-xlight-webfont.woff +0 -0
- data/public/assets/gothamhtf-xlightitalic-webfont.eot +0 -0
- data/public/assets/gothamhtf-xlightitalic-webfont.svg +0 -241
- data/public/assets/gothamhtf-xlightitalic-webfont.ttf +0 -0
- data/public/assets/gothamhtf-xlightitalic-webfont.woff +0 -0
- data/public/css/app.css +0 -190
- data/public/css/bootstrap-responsive.min.css +0 -9
- data/public/css/bootstrap.min.css +0 -9
- data/public/img/glyphicons-halflings-white.png +0 -0
- data/public/img/glyphicons-halflings.png +0 -0
- data/public/js/app.js +0 -0
- data/public/js/bootstrap.min.js +0 -6
- data/public/js/jquery-1.8.0.js +0 -9227
- data/public/themes/app.css +0 -4652
- data/rubycas-server.gemspec +0 -62
data/bin/cap
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'cap' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('capistrano', 'cap')
|
data/bin/capify
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'capify' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('capistrano', 'capify')
|
data/bin/foreman
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'foreman' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('foreman', 'foreman')
|
data/bin/lessc
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'lessc' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('less', 'lessc')
|
data/bin/rackup
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'rackup' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('rack', 'rackup')
|
data/bin/rake2thor
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'rake2thor' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('thor', 'rake2thor')
|
data/bin/therubyracer
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'therubyracer' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('therubyracer', 'therubyracer')
|
data/bin/thor
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'thor' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('thor', 'thor')
|
data/bin/tilt
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'tilt' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('tilt', 'tilt')
|
data/bin/unicorn
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'unicorn' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('unicorn', 'unicorn')
|
data/bin/unicorn_rails
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby-local-exec
|
|
2
|
-
#
|
|
3
|
-
# This file was generated by Bundler.
|
|
4
|
-
#
|
|
5
|
-
# The application 'unicorn_rails' is installed as part of a gem, and
|
|
6
|
-
# this file is here to facilitate running it.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
require 'pathname'
|
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
|
11
|
-
Pathname.new(__FILE__).realpath)
|
|
12
|
-
|
|
13
|
-
require 'rubygems'
|
|
14
|
-
require 'bundler/setup'
|
|
15
|
-
|
|
16
|
-
load Gem.bin_path('unicorn', 'unicorn_rails')
|
data/config/deploy.rb
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
require "bundler/capistrano"
|
|
2
|
-
require "capistrano/ext/multistage"
|
|
3
|
-
require 'hipchat/capistrano'
|
|
4
|
-
|
|
5
|
-
load "config/recipes/base"
|
|
6
|
-
load "config/recipes/nginx"
|
|
7
|
-
load "config/recipes/puma"
|
|
8
|
-
load "config/recipes/git"
|
|
9
|
-
load "config/recipes/rubycas"
|
|
10
|
-
|
|
11
|
-
set :user, 'deployer'
|
|
12
|
-
set :application, "rubycas"
|
|
13
|
-
set :deploy_to, "/home/#{user}/apps/#{application}"
|
|
14
|
-
set :deploy_via, :remote_cache
|
|
15
|
-
set :use_sudo, false
|
|
16
|
-
|
|
17
|
-
set :bundle_flags, "--deployment --quiet --binstubs"
|
|
18
|
-
set :bundler, "/home/#{user}/.rbenv/shims/bundle"
|
|
19
|
-
set :default_environment, {
|
|
20
|
-
'PATH' => "/home/#{user}/.rbenv/shims:/home/#{user}/.rbenv/bin:#{current_path}/bin:$PATH"
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
set :repository, "git@gitlab.synapse.com:synapseit/rubycas-server.git"
|
|
24
|
-
set :stages, %w(staging production)
|
|
25
|
-
set :scm, :git
|
|
26
|
-
set :ssh_options, { :forward_agent => true }
|
|
27
|
-
default_run_options[:pty] = true
|
|
28
|
-
|
|
29
|
-
#hipchat
|
|
30
|
-
set :hipchat_token, "513b16064cff1be931093fb28f37c4"
|
|
31
|
-
set :hipchat_room_name, "The Hacker Dojo"
|
|
32
|
-
set :hipchat_announce, true # notify users?
|
|
33
|
-
|
|
34
|
-
#nginx
|
|
35
|
-
set :sudo_user, 'root'
|
|
36
|
-
set :app_port, "80"
|
data/config/deploy/production.rb
DELETED
data/config/deploy/staging.rb
DELETED
data/config/recipes/base.rb
DELETED
data/config/recipes/git.rb
DELETED
data/config/recipes/nginx.rb
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
namespace :nginx do
|
|
2
|
-
desc "Install latest stable release of nginx"
|
|
3
|
-
task :install, roles: :web do
|
|
4
|
-
run "#{sudo} add-apt-repository ppa:nginx/stable"
|
|
5
|
-
run "#{sudo} apt-get -y update"
|
|
6
|
-
run "#{sudo} apt-get -y install nginx"
|
|
7
|
-
end
|
|
8
|
-
after "deploy:install", "nginx:install"
|
|
9
|
-
|
|
10
|
-
desc "Setup nginx configuration for this application"
|
|
11
|
-
task :setup, roles: :web do
|
|
12
|
-
template "nginx.erb", "/tmp/nginx_conf"
|
|
13
|
-
run "#{sudo} mv /tmp/nginx_conf /etc/nginx/sites-enabled/#{application}"
|
|
14
|
-
run "#{sudo} rm -f /etc/nginx/sites-enabled/default"
|
|
15
|
-
restart
|
|
16
|
-
end
|
|
17
|
-
after "deploy:setup", "nginx:setup"
|
|
18
|
-
|
|
19
|
-
%w[start stop restart].each do |command|
|
|
20
|
-
desc "#{command} nginx"
|
|
21
|
-
task command, roles: :web do
|
|
22
|
-
run "#{sudo} service nginx #{command}"
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# NOTE: I found it necessary to manually fix the init script as shown here
|
|
28
|
-
# https://bugs.launchpad.net/nginx/+bug/1033856
|
data/config/recipes/puma.rb
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
after 'deploy:stop', 'puma:stop'
|
|
2
|
-
after 'deploy:start', 'puma:start'
|
|
3
|
-
after 'deploy:restart', 'puma:restart'
|
|
4
|
-
|
|
5
|
-
_cset(:puma_cmd) { "#{fetch(:bundle_cmd, 'bundle')} exec puma" }
|
|
6
|
-
_cset(:pumactl_cmd) { "#{fetch(:bundle_cmd, 'bundle')} exec pumactl" }
|
|
7
|
-
_cset(:puma_state) { "#{shared_path}/sockets/#{application}-puma.state" }
|
|
8
|
-
_cset(:puma_ctl_sock) { "#{shared_path}/sockets/#{application}-pumactl.sock" }
|
|
9
|
-
_cset(:puma_sock) { "#{shared_path}/sockets/#{application}-puma.sock" }
|
|
10
|
-
_cset(:puma_pid) { "#{shared_path}/pids/puma.pid" }
|
|
11
|
-
_cset(:puma_role) { :app }
|
|
12
|
-
|
|
13
|
-
namespace :puma do
|
|
14
|
-
desc 'Start puma'
|
|
15
|
-
task :start, :roles => lambda { fetch(:puma_role) }, :on_no_matching_servers => :continue do
|
|
16
|
-
puma_env = fetch(:rack_env, fetch(:rails_env, 'production'))
|
|
17
|
-
run "cd #{current_path} && #{fetch(:puma_cmd)} --config #{shared_path}/config/puma.rb", :pty => false
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
desc 'Stop puma'
|
|
21
|
-
task :stop, :roles => lambda { fetch(:puma_role) }, :on_no_matching_servers => :continue do
|
|
22
|
-
run "cd #{current_path} && #{fetch(:pumactl_cmd)} -S #{fetch(:puma_state)} stop"
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
desc 'Restart puma'
|
|
26
|
-
task :restart, :roles => lambda { fetch(:puma_role) }, :on_no_matching_servers => :continue do
|
|
27
|
-
run "cd #{current_path} && #{fetch(:pumactl_cmd)} -S #{fetch(:puma_state)} restart"
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
desc "Install puma configuration"
|
|
31
|
-
task :setup, roles: :app do
|
|
32
|
-
template "puma.erb", "/tmp/puma_conf"
|
|
33
|
-
run "cd #{shared_path} && mkdir config"
|
|
34
|
-
run "cd #{shared_path} && mkdir sockets"
|
|
35
|
-
run "#{sudo} mv /tmp/puma_conf #{shared_path}/config/puma.rb"
|
|
36
|
-
end
|
|
37
|
-
after "deploy:setup", "puma:setup"
|
|
38
|
-
end
|
data/config/recipes/rubycas.rb
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
namespace :rubycas do
|
|
2
|
-
desc "Setup nginx configuration for this application"
|
|
3
|
-
task :setup, roles: :web do
|
|
4
|
-
template "rubycas.erb", "/tmp/rubycas"
|
|
5
|
-
run "#{sudo} mv /tmp/rubycas /etc/rubycas-server/config.yml"
|
|
6
|
-
end
|
|
7
|
-
after "deploy:setup", "rubycas:setup"
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
# NOTE: I found it necessary to manually fix the init script as shown here
|
|
11
|
-
# https://bugs.launchpad.net/nginx/+bug/1033856
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
upstream <%= application %> {
|
|
2
|
-
server unix:<%= shared_path %>/sockets/<%= application %>-puma.sock fail_timeout=0;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
server {
|
|
6
|
-
listen 80;
|
|
7
|
-
server_name <%= server_name %>;
|
|
8
|
-
rewrite ^ https://$server_name$request_uri? permanent;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
server {
|
|
12
|
-
listen 443;
|
|
13
|
-
server_name <%= server_name %>;
|
|
14
|
-
root <%= current_path %>/public;
|
|
15
|
-
|
|
16
|
-
ssl on;
|
|
17
|
-
ssl_certificate /etc/ssl/cert_wildcard.crt;
|
|
18
|
-
ssl_certificate_key /etc/ssl/key_wildcard.key;
|
|
19
|
-
|
|
20
|
-
if (-f $document_root/maintenance.html) {
|
|
21
|
-
rewrite ^(.*)$ /maintenance.html last;
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
location / {
|
|
26
|
-
try_files $uri $uri/index.html $uri @<%= application %>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
location @<%= application %> {
|
|
31
|
-
proxy_redirect off;
|
|
32
|
-
proxy_set_header X-FORWARDED_PROTO https;
|
|
33
|
-
proxy_set_header Host $http_host;
|
|
34
|
-
proxy_set_header X-Real-IP $remote_addr;
|
|
35
|
-
proxy_read_timeout 300;
|
|
36
|
-
proxy_connect_timeout 300;
|
|
37
|
-
proxy_pass http://<%= application %>;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
error_page 500 502 503 504 /500.html;
|
|
41
|
-
client_max_body_size 4G;
|
|
42
|
-
keepalive_timeout 10;
|
|
43
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
environment '<%= stage %>' || 'development'
|
|
2
|
-
|
|
3
|
-
threads 3,3
|
|
4
|
-
|
|
5
|
-
bind "unix:///<%= puma_sock %>"
|
|
6
|
-
pidfile "<%= puma_pid %>"
|
|
7
|
-
state_path "<%= puma_state %>"
|
|
8
|
-
|
|
9
|
-
daemonize true
|
|
10
|
-
|
|
11
|
-
stdout_redirect '<%= shared_path %>/log/puma.stdout.log', '<%= shared_path %>/log/puma.stderror.log', true
|
|
12
|
-
|
|
13
|
-
activate_control_app "unix:///<%= puma_ctl_sock %>"
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# MANAGED BY CAPISTRANO
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
##### DATABASE #################################################################
|
|
5
|
-
|
|
6
|
-
database:
|
|
7
|
-
adapter: mysql2
|
|
8
|
-
database: casserver_dev
|
|
9
|
-
username: casserver_user
|
|
10
|
-
password: DaDLw7a7oXZVWz
|
|
11
|
-
host: core-internal.cg3ywao0k1nv.us-west-2.rds.amazonaws.com
|
|
12
|
-
reconnect: true
|
|
13
|
-
|
|
14
|
-
#disable_auto_migrations: true
|
|
15
|
-
|
|
16
|
-
##### AUTHENTICATION ###########################################################
|
|
17
|
-
|
|
18
|
-
authenticator:
|
|
19
|
-
class: CASServer::Authenticators::ActiveDirectoryLDAP
|
|
20
|
-
ldap:
|
|
21
|
-
host: core-dc-1.synapsedev.com
|
|
22
|
-
port: 389
|
|
23
|
-
base: OU=SBSUsers,OU=Users,OU=MyBusiness,DC=synapsedev,DC=com
|
|
24
|
-
filter: (&(objectCategory=person)(objectClass=user))
|
|
25
|
-
auth_user: SYNAPSEDEV\~svcProvisioningConf
|
|
26
|
-
auth_password: IZE6CgJhIZZYbKfyW4Po
|
|
27
|
-
extra_attributes: name, mail, memberOf, synapseRecursiveGroups, synapseExtendedAttributes, givenname, sn, pinNumber, department, company, l, synapseAccessCardNumber
|
|
28
|
-
|
|
29
|
-
theme: simple
|
|
30
|
-
|
|
31
|
-
organization: Synapse
|
|
32
|
-
|
|
33
|
-
infoline: Powered by <a href="http://code.google.com/p/rubycas-server/">RubyCAS-Server</a>
|
|
34
|
-
|
|
35
|
-
# Custom views directory. If set, this will be used instead of 'lib/casserver/views'.
|
|
36
|
-
custom_views: <%= deploy_to %>/current/lib/casserver/views
|
|
37
|
-
|
|
38
|
-
# Custom public directory. If set, static content (css, etc.) will be served from here rather
|
|
39
|
-
# than from rubycas-server's internal 'public' directory (but be mindful of any overriding
|
|
40
|
-
# settings you may have in your web server's config).
|
|
41
|
-
public_dir: <%= deploy_to %>/current/public
|
|
42
|
-
|
|
43
|
-
default_locale: en
|
|
44
|
-
|
|
45
|
-
##### LOGGING ##################################################################
|
|
46
|
-
|
|
47
|
-
log:
|
|
48
|
-
file: <%= shared_path %>/log/casserver.log
|
|
49
|
-
level: DEBUG
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# If you want full database logging, uncomment this next section.
|
|
53
|
-
# Every SQL query will be logged here. This is useful for debugging database
|
|
54
|
-
# problems.
|
|
55
|
-
|
|
56
|
-
#db_log:
|
|
57
|
-
# file: /var/log/casserver_db.log
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# Setting the following option to true will disable CLI output to stdout.
|
|
61
|
-
# i.e. this will get rid of messages like ">>> Redirecting RubyCAS-Server log..."
|
|
62
|
-
# This is useful when, for example, you're running rspecs.
|
|
63
|
-
|
|
64
|
-
#quiet: true
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
##### SINGLE SIGN-OUT ##########################################################
|
|
68
|
-
|
|
69
|
-
# When a user logs in to a CAS-enabled client application, that application
|
|
70
|
-
# generally opens its own local user session. When the user then logs out
|
|
71
|
-
# through the CAS server, each of the CAS-enabled client applications need
|
|
72
|
-
# to be notified so that they can close their own local sessions for that user.
|
|
73
|
-
#
|
|
74
|
-
# Up until recently this was not possible within CAS. However, a method for
|
|
75
|
-
# performing this notification was recently added to the protocol (in CAS 3.1).
|
|
76
|
-
# This works exactly as described above -- when the user logs out, the CAS
|
|
77
|
-
# server individually contacts each client service and notifies it of the
|
|
78
|
-
# logout. Currently not all client applications support this, so this
|
|
79
|
-
# behaviour is disabled by default. To enable it, uncomment the following
|
|
80
|
-
# configuration line. Note that currently it is not possible to enable
|
|
81
|
-
# or disable single-sign-out on a per-service basis, but this functionality
|
|
82
|
-
# is planned for a future release.
|
|
83
|
-
|
|
84
|
-
enable_single_sign_out: true
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
##### OTHER ####################################################################
|
|
88
|
-
|
|
89
|
-
# You can set various ticket expiry times (specify the value in seconds).
|
|
90
|
-
|
|
91
|
-
# Unused login and service tickets become unusable this many seconds after
|
|
92
|
-
# they are created. (Defaults to 5 minutes)
|
|
93
|
-
|
|
94
|
-
#maximum_unused_login_ticket_lifetime: 300
|
|
95
|
-
#maximum_unused_service_ticket_lifetime: 300
|
|
96
|
-
|
|
97
|
-
# The server must periodically delete old tickets (login tickets, service tickets
|
|
98
|
-
# proxy-granting tickets, and ticket-granting tickets) to prevent buildup of
|
|
99
|
-
# stale data. This effectively limits the maximum length of a CAS session to
|
|
100
|
-
# the lifetime given here (in seconds). (Defaults to 48 hours)
|
|
101
|
-
#
|
|
102
|
-
# Note that this limit is not enforced on the client side; it refers only to the
|
|
103
|
-
# the maximum lifetime of tickets on the CAS server.
|
|
104
|
-
|
|
105
|
-
#maximum_session_lifetime: 172800
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
# If you want the usernames entered on the login page to be automatically
|
|
109
|
-
# downcased (converted to lowercase), enable the following option. When this
|
|
110
|
-
# option is set to true, if the user enters "JSmith" as their username, the
|
|
111
|
-
# system will automatically
|
|
112
|
-
# convert this to "jsmith".
|
|
113
|
-
|
|
114
|
-
downcase_username: true
|