- S3の'Static Website Hosting'を有効にする
- 'Edit Redirection Rules'を編集する
- 'bucket policy'を編集する
- CLoudFrontのOriginにS3の'Static Website Hosting'のEndpointを指定する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This is the "site config" for nginx | |
upstream django { | |
# Distribute requests to servers based on client IP. This keeps load | |
# balancing fair but consistent per-client. In this instance we're | |
# only using one uWGSI worker anyway. | |
ip_hash; | |
server unix:/tmp/uwsgi.sock; | |
} | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# pid2line.rb | |
# | |
# Show source files and line numers of given process's threads | |
# | |
# This script works only on Linux. | |
# https://gist.github.com/nurse/0619b6af90df140508c2 | |
# |