Key certification system for Department of Information Engineering, University of the Ryukyu.
( ヽ , ⌒ヽ , ⌒ヽ
, ⌒ヽ ( ヽ _,=''''''^~~~~~~~~~^''''=,,,,( ( '
( ' ( ,-='''~ -=^~~~^-^~~~^==- '=,,, ゝ `ヽ
ゝ `ヽ <~ -==^~~~^ =^~~^=-=^~~^'=-~'=, ( )
( ヽ'^' __,,,,,,i~~~l===|~~i==|~~|_,,,,,..ノ ( ヽ
( (⌒ ヽi~ | |__レ、l--l--レ.;---i i-、 ( )
( r'^~~~~l l | :| ∩ ∩|,-=,__,-,_| |~i^i,, ヽ
( `) l^^|,,,,--==.i~~l~~~~~~~~~~| i l .|~^''''l~^i,,,, ヽ
,ゝ /i~~i' l ∩∩l .l ∩ ∩ l |__| .| .∩| .| l-,
( ' ,,,,,='~| | |' |,,=i~~i==========|~~|^^|~ ~'i----i==i,, | 'i
( ( | l ,==,-'''^^ l |. ∩. ∩. ∩. | |∩| |∩∩| |~~^i~'i、
( ,=i^~~.| |.∩.∩ |,...,|__|,,|__|,,|__|,,|__|,....,||,,|.|,.....,||,|_|,|.|,....,| | |~i
( l~| .| | ,,,---== ヽノ i ヽノ~~~ ヽノ ~ ソ^=-.i,,,,|,,,|
,ゝ .|..l i,-=''~~--,,, \ \ l / / / __,-=^~
( |,-''~ -,,,_ ~-,,. \ .\ | ./ / _,,,-~ / ヽ
, ⌒ヽ ~^''=、_ _ ^'- i=''''''^~~~~~~~~~~~~~~~~~~~~^''''''''=i -'^~ ( ヽ
ヽ ~^^''ヽ ヽ i | l i / / ノ ( )
, ⌒ヽ ヽ 、 l | l l / ./ / ( (
, ⌒ヽ⌒ヽ \_ 、i ヽ i / ,,==' ( ヽ
, ⌒ヽ ''==,,,,___,,,=='~ ,ゝ ヽ
⌒ ( ヽ
ノ ヽ
It is a felica reader that exists in the 1st building of the Faculty of Engineering Building of the University of the Ryukyus.
check
felica id (felica id searcher)
+--------------+ +---------------+
| <--------+ | | felica data
| Akatsuki | | | Levistone <------------------+
| +----+ | | | |
+--+---+----+--+ | | +-------+-------+ |
| ^ | | | | |
| | | | | | +--------+-------+
initialize | | | | | | | |
to | | | | | | | nfc reader |
authenticate | | | | | | | |
| | | | | | send felica id +----------------+
| | | | | |
+--v---+----v--+ | | +-------v-------+
| | | +---+ |
| Laputa | | | Balus +-------------------------->
| | +-------> |
+--------------+ +---------------+ open the door
recieve
(RESTful API Server) (Unix domain socket)
+ ^
| |
| |
| +-------------+ |
| | | |
+------> leveldb +-------+
put secret | | get secret
+-------------+
There are build modes for development and staging.
-
for develop
make build-dev -
for staging
make build-staging
Run below script after setting SSH-KEY.
ansible-playbook ./ansible/migrate.yml --praivate-key=SSH-KEY
After setup, you can run
carton exec ./run
You can run without finish after program is modified(Golang projects only).
make restart-staging
Please open run with your favorite editor.
By editing the env function, you can change the behavior at program execution.
Environment variable
LAPUTA_CERTFILESpecify the file path of the certificateLAPUTA_KEYFILESpecify the file path of the keyLAPUTA_AKATSUKISpecify the URL of the api for authenticationLAPUTA_FLOORFloor code for registration