def authenticate authenticate_or_request_with_http_token do |token, _options| @user = User.find_by_token token head status: 401 if @user.blank? end end
def authenticate authenticate_or_request_with_http_basic do |_user, password| @user = User.find_by_token password head status: 401 if @user.blank? end end
# Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
Your cert will expire on 2020-08-04. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the "certonly" option.
Which names would you like to activate HTTPS for? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: book-reviews.blog - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter 'c' to cancel): 1 Cert is due for renewal, auto-renewing... Renewing an existing certificate Performing the following challenges: http-01 challenge for book-reviews.blog Waiting for verification... Cleaning up challenges
IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/book-reviews.blog/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/book-reviews.blog/privkey.pem Your cert will expire on 2020-11-03. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew" - If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le
Resources - active content with certificate errors You have recently allowed content loaded with certificate errors (such as scripts or iframes) to run on this site.
$ sudo su - # ls -l /proc/1797/ 合計 0 dr-xr-xr-x 2 user user 0 7月 31 00:47 2020 attr -rw-r--r-- 1 user user 0 7月 31 00:47 2020 autogroup -r-------- 1 user user 0 7月 31 00:47 2020 auxv -r--r--r-- 1 user user 0 7月 31 00:47 2020 cgroup --w------- 1 user user 0 7月 31 00:47 2020 clear_refs -r--r--r-- 1 user user 0 7月 31 00:46 2020 cmdline -rw-r--r-- 1 user user 0 7月 31 00:47 2020 comm -rw-r--r-- 1 user user 0 7月 31 00:47 2020 coredump_filter -r--r--r-- 1 user user 0 7月 31 00:47 2020 cpuset lrwxrwxrwx 1 user user 0 7月 31 00:47 2020 cwd -> /var/www/user-cms/releases/20200729065345 -r-------- 1 user user 0 7月 31 00:47 2020 environ lrwxrwxrwx 1 user user 0 7月 31 00:47 2020 exe -> /usr/local/rbenv/versions/2.4.10/bin/ruby dr-x------ 2 user user 0 7月 31 00:47 2020 fd dr-x------ 2 user user 0 7月 31 00:47 2020 fdinfo -r-------- 1 user user 0 7月 31 00:47 2020 io -rw------- 1 user user 0 7月 31 00:47 2020 limits -rw-r--r-- 1 user user 0 7月 31 00:47 2020 loginuid -r--r--r-- 1 user user 0 7月 31 00:47 2020 maps -rw------- 1 user user 0 7月 31 00:47 2020 mem -r--r--r-- 1 user user 0 7月 31 00:47 2020 mountinfo -r--r--r-- 1 user user 0 7月 31 00:47 2020 mounts -r-------- 1 user user 0 7月 31 00:47 2020 mountstats dr-xr-xr-x 6 user user 0 7月 31 00:47 2020 net dr-x--x--x 2 user user 0 7月 31 00:47 2020 ns -r--r--r-- 1 user user 0 7月 31 00:47 2020 numa_maps -rw-r--r-- 1 user user 0 7月 31 00:47 2020 oom_adj -r--r--r-- 1 user user 0 7月 31 00:47 2020 oom_score -rw-r--r-- 1 user user 0 7月 31 00:47 2020 oom_score_adj -r--r--r-- 1 user user 0 7月 31 00:47 2020 pagemap -r--r--r-- 1 user user 0 7月 31 00:47 2020 personality lrwxrwxrwx 1 user user 0 7月 31 00:47 2020 root -> / -rw-r--r-- 1 user user 0 7月 31 00:47 2020 sched -r--r--r-- 1 user user 0 7月 31 00:47 2020 schedstat -r--r--r-- 1 user user 0 7月 31 00:47 2020 sessionid -r--r--r-- 1 user user 0 7月 31 00:47 2020 smaps -r--r--r-- 1 user user 0 7月 31 00:47 2020 stack -r--r--r-- 1 user user 0 7月 31 00:46 2020 stat -r--r--r-- 1 user user 0 7月 31 00:47 2020 statm -r--r--r-- 1 user user 0 7月 30 22:38 2020 status -r--r--r-- 1 user user 0 7月 31 00:47 2020 syscall dr-xr-xr-x 5 user user 0 7月 31 00:47 2020 task -r--r--r-- 1 user user 0 7月 31 00:47 2020 wchan
$ docker logs コンテナID /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh 10-listen-on-ipv6-by-default.sh: error: /etc/nginx/conf.d/default.conf is not a file or does not exist /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh /docker-entrypoint.sh: Configuration complete; ready for start up 2020/07/22 07:55:16 [emerg] 1#1: host not found in upstream "rails:3000" in /etc/nginx/conf.d/rails.conf:2 nginx: [emerg] host not found in upstream "rails:3000" in /etc/nginx/conf.d/rails.conf:2