Skip to content

creatio313/terraformForHLSConvertServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

さくらのクラウドでmp4->HLS変換サーバを立ち上げる際に使えるTerraformコードです。

構築方法

  1. Terraformをインストールします。
  2. さくらのクラウドホームで、アクセスキーを発行し、terraform.tfvars.exampleに反映します。作成するサーバーの管理者パスワードも入力します。
  3. terraform.tfvars.exampleのファイル名称をterraform.tfvarsに変更します。
  4. 以下のコマンドを実行します。exeの実行を蹴られる場合は許可してください。
Terraform init
Terraform plan
Terraform apply

サーバーが構築されます。サーバログインに使用する秘密鍵は、.sshフォルダに作成されます。

Go言語の実行方法

ローカルでコンパイルしてサーバに移すか、サーバで直接実行してください。 実行コマンドは以下の通りです。

go run main.go -endpoint="https://オブジェクトストレージのエンドポイント" -region="リージョン" -input-bucket="mp4を格納したバケット名" -output-bucket="HLSを出力するバケット名" -access-key="アクセスキーID" -secret-key="シークレットアクセスキー"

About

さくらのクラウドでのHLS変換サーバ構築用ソース群

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors