ラベル GAE の投稿を表示しています。 すべての投稿を表示
ラベル GAE の投稿を表示しています。 すべての投稿を表示

2017年2月8日水曜日

Dart x AngularDart x GAE x Go で ウェブページを作ってみた

AngularDart x GAE x Go  で ウェブページを作ってみました

http://firefirestyle.net/



Twitterでログインして、投稿ができます。タグ検索をサポートしています。
機能不足ですが、今週中くらいには、現在の提供している
機能で未実装の部分は実装する予定。

ただ、投稿サイトの機能は、外して、http://k07.me の方のみにするかも

フォロー機能、タイムライン機能、メッセージ機能は
k07meには、今年の前半中には
実装する予定です。

ノウハウはあるので

Source
https://github.com/firefirestyle/engine-v01-app
https://github.com/firefirestyle/engine-v01

2017年1月22日日曜日

Let's encrypt で、GAEで動作しているアプリをHttps化してみた

試しに、GAE上で動作させているWebページをHttps化してみました。
https://firefirestyle.net

SSLには、Let's Encrypt(https://letsencrypt.org/)を利用しました。
https://certbot.eff.org/#osx-otherの通りに手を動かすとできます。

Install

brew install certbot


Get Started

1) sudo certbot certonly --manual

1-1) Please enter in your domain name(s) (comma and/or space separated)  (Enter 'c' to cancel):
firefirestyle.net

登録するドメインをしていする

1-2) Are you OK with your IP being logged?
Y

IPを記録するとのことなので、OKする。NOだと、登録できない。


1-3) Make sure your web server displays the following content at
http://firefirestyle.net/.well-known/acme-challenge/xxxxxyyyyy...

zzzzaaaaa....

http://firefirestyle.net/.well-known/acme-challenge/xxxxxyyyyy...
を開くと、zzzzaaaaa....と表示されるようにする。


1-4) Enterを押すとpemが生成されます。


2) private.keyをrsaフォーマットにコンバードする
sudo openssl rsa -inform pem -in privkey.pem -outform pem -out out.pem


3) GAEの登録
3-1) ページを開く
https://cloud.google.com/appengine/docs/python/console/using-custom-domains-and-ssl
に記載の登録ページに行く

3-2) PEM encoded X.509 public key certificate に、fullchain.pem を指定する

3-3) Unencrypted PEM encoded RSA private keyに、out.pem を指定する



期間

証明書の期限は、3ヶ月なので、こまめに更新する必要があります。
もともと、lets encrypt は、Unencrypted PEM encoded RSA private key を利用して
自動更新する方法を想定して作られています。

GAEでの、この辺りの自動化については、以下とか参考にしてください。

まだ、私は試していません。

参考

http://koni.hateblo.jp/entry/2016/06/02/233900
http://blog.seafuj.com/lets-encrypt-on-google-app-engine
https://community.letsencrypt.org/t/error-adding-cert-invalid-private-key/5167




これから読む

https://github.com/jlandure/go-appengine-https
https://github.com/xenolf/lego




2017年1月17日火曜日

GAEに独自ドメインを設定して見た。

Google App Engine のプロジェクトにカスタムドメインを 試してみました。

以前は、Google Apps を利用する必要があったようですが、今はなくてもできるようです。


1. ドキュルトからコンソールに飛ぶ

https://cloud.google.com/appengine/docs/python/console/using-custom-domains-and-ssl#adding_a_custom_domain_for_your_application

2. Setting -> Cutsom domains -> Add a custom domain  より、自ドメインを登録する

※ 登録には、DNSにTxtの追加ないしCNAMEの設定をする事で認証されます。
```
cname xxxxxXxxxsig yy-yyyyy.yy.googlehosted.com.
```

3. 登録したドメインを選択して、 Continue で完了

※ DNSの設定が要求されます。支持に従って追加します。
```
a @ xxx.xxx.xx.xx
a @ xxx.xxx.xx.xx
a @ xxx.xxx.xx.xx
a @ xxx.xxx.xx.xx
aaaa @ xxxx:xxxx:xxxx:xx::xx
aaaa @ xxxx:xxxx:xxxx:xx::xx
aaaa @ xxxx:xxxx:xxxx:xx::xx
aaaa @ xxxx:xxxx:xxxx:xx::xx
cname www xxxxxxx.googlehosted.com.
```

これで、完了です。

以下は設定したサイト

まだ何もない
http://firefirestyle.net


Game Boy の VGM から JavaScript への変換後に、 生成AIの補正が有効だった事について

Game Boy の VGM から JavaScript への変換後に、 生成AIの補正が有効だった事について Tetorica FM2612 Playground には GameBoy や Genesis の VGM ファイル から JavaScript へ変換する機能を持って...