Add supprt for new Rails 5.2 aes-256-gcm cookies
This commit is contained in:
@ -8,7 +8,7 @@ Devise.setup do |config|
|
||||
# confirmation, reset password and unlock tokens in the database.
|
||||
# Devise will use the `secret_key_base` as its `secret_key`
|
||||
# by default. You can change it below and use your own secret key.
|
||||
# config.secret_key = 'da45f01cc03f113df2ac8788aab0833ff0ce6d3f2e298e964e0b35c7f63877588054a503106f0102d412987a45ed49e9a49697a6cf66da22f04ca6dafd24f76d'
|
||||
# config.secret_key = ''
|
||||
|
||||
# ==> Controller configuration
|
||||
# Configure the parent class to the devise controllers.
|
||||
|
1
example/config/initializers/secret_tokens.rb
Normal file
1
example/config/initializers/secret_tokens.rb
Normal file
@ -0,0 +1 @@
|
||||
Rails.application.config.secret_key_base= '0a248500a64c01184edb4d7ad3a805488f8097ac761b76aaa6c17c01dcb7af03a2f18ba61b2868134b9c7b79a122bc0dadff4367414a2d173297bfea92be5566'
|
25
example/nginx.conf
Normal file
25
example/nginx.conf
Normal file
@ -0,0 +1,25 @@
|
||||
events { }
|
||||
|
||||
http {
|
||||
server {
|
||||
server_name localhost;
|
||||
listen 3001;
|
||||
|
||||
location /api/v1/graphql {
|
||||
proxy_pass http://super_graph:8080;
|
||||
proxy_redirect off;
|
||||
#rewrite ^/api/v1/graphql$ $1 break;
|
||||
}
|
||||
|
||||
location /super-graph {
|
||||
proxy_pass http://super_graph:8080;
|
||||
proxy_redirect off;
|
||||
rewrite ^/super-graph/(.*)$ /$1 break;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://web:3000;
|
||||
proxy_redirect off;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user