떆濡쒖 (뿤濡쒖) Photo Station 룷듃 蹂寃쎈갑踰

븳 2뀈젙룄 쟾뿉 留뚮뱾뼱넧뜕 뿤濡쒖媛 븯굹 엳뒗뜲 洹몃룞븞 벝씪씠 뾾뼱꽌 援ъ꽍뿉 諛뺤븘넃怨 엸怨 吏궡떎媛 븳 2二쇱쟾遺꽣 吏묒뿉 엳뒗 媛議깆궗吏꾩쓣 紐⑤몢 뵒吏꽭솕빐꽌 蹂닿빐 蹂닿퀬옄 븯怨 떎떆 쟾썝쓣 삱由ш쾶 릺뿀떎

吏묒뿉 엳뒗 蹂듯빀湲곌 뿬윭옣 寃뱀퀜넃쑝硫 븳옣뵫 옄룞쑝濡 뒪罹붾릺뒗 洹몃윴 怨좎삤湲 湲곕뒫 洹몃뵶嫄 뾾怨 嫄 뿇뼱넃怨 뒪罹뷀븯怨 떎떆 뿇뼱넃怨 뒪罹뷀븯怨 빐빞븯뒗 졃씠 꽍씠씪 2二쇰룞븞 釉붾줈洹 룷뒪똿 臾쇰줎 떎瑜멸굔 븯吏룄 紐삵븯怨 뒪罹붾쑉怨 옄瑜닿퀬 뒪罹붾쑉怨 옄瑜닿퀬留 諛섎났뻽떎

洹몃젃寃 ‘븘 씠옒꽌 룉쓣 二쇨퀬 留↔린뒗援щ굹’瑜 븯猷⑥뿉 븳踰덉뵫 깉궪뒪읇寃 뒓겮硫 臾댁꽦쑝濡 諛섎났옉뾽쓣 븯떎蹂대땲 뼱뒓뜤 걹씠굹寃 릺뿀떎

洹몃젃寃 뒪罹붿쓣 걹궡怨 뿤濡쒖쓽 룷넗뒪뀒씠뀡쓣 넻빐꽌 諛깆뾽쓣 븯怨 蹂대땲 룷넗뒪뀒씠뀡 李 씗븳븯寃뚮룄 쓳슜봽濡쒓렇옩 꽕젙뿉꽌 룷듃 꽕젙쓣 븷 닔 뾾怨 뿭諛⑺뼢 봽濡앹떆 꽕젙쓣 빐以섏빞 뻽뒗뜲 뼱吏쒗뵾 꽌釉뚮룄硫붿씤쓣 솢꽦솕瑜 떆耳쒖쨪 솚寃쎈룄 븘땲怨 꽕젙留 源붾걫븯吏 紐삵븯寃 릺뒗 뒓굦씠씪 쓳슜봽濡쒓렇옩 꽕젙뿉꽌 룷듃蹂寃쎌씠 媛뒫븯寃뚮걫 빐二쇨린濡 뻽떎

썝옒뒗 쐞 궗吏꾧낵뒗 떎瑜닿쾶 젣뼱뙋쓽 쓳슜 봽濡쒓렇옩 룷꽭뿉꽌 Photo Station 硫붾돱瑜 솗씤븷 닔 뾾쓣 寃껋씠떎

洹몃젃湲곗뿉 룷듃 꽕젙쓣 쐞빐꽑 씠 湲곕뒫쓣 솢꽦솕 떆耳쒖쨾빞 븯뒗뜲 슦꽑 떆(뿤)쓽 꽣誘몃꼸쓣 솢꽦솕 떆耳쒖<怨

쐢룄슦쓽 cmd굹 留μ쓽 꽣誘몃꼸씠굹 뿬듉 꽣誘몃꼸 젒냽씠 媛뒫븳 댋쓣 넻빐꽌

1
2
ssh 궗슜옄紐@二쇱냼 -p 룷듃踰덊샇
鍮꾨踰덊샇
cs

ssh 젒냽쓣 빐二쇨퀬

1
2
sudo -i
鍮꾨踰덊샇
cs

猷⑦듃 沅뚰븳쓣 솢꽦솕 빐二쇨퀬

1
cd /usr/syno/etc/www/app.d
cs

쐞 뵒젆꽣由щ줈 씠룞쓣 빐以떎

洹몃━怨 빐떦 뵒젆꽣由ъ뿉 2媛吏 뙆씪쓣 꽕젙빐以섏빞븯뒗뜲

1
vi PhotoStation.json
cs

슦꽑 PhotoStation.json 뙆씪遺꽣 깮꽦쓣 빐以떎

i瑜 닃윭 엯젰쓣 솢꽦솕 떆耳쒖<怨

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
   “application”“Photo Station”,
   “id”“SYNO.SDS.PhotoStation.Instance”,
   “alias”“photo”,
   “fqdn”“photo.example.com”,
   “https”: {
       “hsts”false,
       “http2”false
   },
   “alternatePort”: {
     “http”9130,
     “https”9131
   },
   “injectable”false,
   “index”“index.php”,
   “root”“/var/packages/PhotoStation/target”,
   “version”2
}
 
cs

쐞 궡슜쓣 蹂듭궗 遺숈뿬꽔湲 빐二쇨퀬 esc >> :wq! >> 뿏꽣瑜 닃윭꽌 옣쓣 빐以떎

1
vi PhotoStation.mustache
cs

떎쓬 PhotoStation.mustache 뙆씪쓣 깮꽦빐二쇨퀬 뿭떆굹 i瑜 닃윭꽌 엯젰쓣 솢꽦솕 떆耳쒖 떎쓬

1
2
3
4
5
6
7
8
9
10
11
12
{{#server}}
   location = /index.php {
      return 302 /;
   }
   location / {
      rewrite ^//photo/index.php last;
      rewrite ^/~([^\/]+)$ /photo/index.php last;
      rewrite ^/blog/(.+)$ /blog/$1 last;
      rewrite ^/(.+)$ /photo/$1 last;
   }
   {{> /var/packages/PhotoStation/target/etc/SYNO.SDS.PhotoStation/www.PhotoStation.conf}}
{{/server}}
cs

씠 궡슜쓣 蹂듭궗 遺숈뿬꽔湲 빐二쇨퀬 뿭떆굹 esc >> :wq! >> 뿏꽣瑜 넻빐꽌 옣쓣 빐以떎

뿬湲곌퉴吏 셿猷뚰뻽쑝硫 꽣誘몃꼸뿉 exit쓣 엯젰빐꽌 뿰寃곗쓣 醫낅즺빐二쇨퀬 떎떆 떆濡쒖쓽 젣뼱뙋뿉꽌 쓳슜봽濡쒓렇옩 룷꽭濡 뱾뼱媛硫

쐞 媛숈씠 룷넗뒪뀒씠뀡쓽 룷듃 꽕젙씠 媛뒫븯寃 맂떎