Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.


ELB 

http
433


ELB 80
def https_enabled?
+ Rails.env.production? && ENV['LOCAL_HTTPS'] == 'true'

&& ENV['HTTP_X_FORWARDED_PORT'] !...
Mastodon WebSocket


stream 4000
ALB








401
+ app.get('/status', (req, res) => {
+ res.status(200).send('OK');
+ })
streaming/index.js
rails ruby postgres
redis 

Docker 

→ 



1 10 

Docker for Mac osxfs 

docker-sync 

Docker for Mac docker-sync
REST API 

: Mastodon API curl 



https://your-domain.com/oauth/applications
OAuth 

node passport Strategy 

https://github.com/techfeed/passport-mastodon

Install
$ npm install passport-mastodon
Mastodon AGPL 



https://github.com/techfeed/techfeedon

ELB Oauth about
Be Techie!
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
マイ丼5分クッキング
Upcoming SlideShare
Loading in …5
×

マイ丼5分クッキング

4,174 views

Published on

Mastodon Tech Night#1 でのLT資料です

Published in: Technology
  • Be the first to comment

  • Be the first to like this

マイ丼5分クッキング

  1. 1. 

  2. 2. ELB 
 http
  3. 3. 433 
 ELB 80 def https_enabled? + Rails.env.production? && ENV['LOCAL_HTTPS'] == 'true'
 && ENV['HTTP_X_FORWARDED_PORT'] != '443' end app/controllers/application_controller.rb
  4. 4. Mastodon WebSocket stream 4000
  5. 5. ALB 

  6. 6. 
 
 401 + app.get('/status', (req, res) => { + res.status(200).send('OK'); + }) streaming/index.js
  7. 7. rails ruby postgres redis Docker → 

  8. 8. 
 1 10 Docker for Mac osxfs 
 docker-sync 
 Docker for Mac docker-sync
  9. 9. REST API 
 : Mastodon API curl 
 https://your-domain.com/oauth/applications
  10. 10. OAuth node passport Strategy 
 https://github.com/techfeed/passport-mastodon Install $ npm install passport-mastodon
  11. 11. Mastodon AGPL https://github.com/techfeed/techfeedon ELB Oauth about
  12. 12. Be Techie!

×