add How to hide user home directory in ssh repository...
...URL?
... | ... |
@@ -414,7 +414,7 @@ Please fix it by the following way. |
414 | 414 |
# Restart |
415 | 415 |
./gitprep |
416 | 416 |
|
417 |
-## I want to set time zone. |
|
417 |
+### I want to set time zone. |
|
418 | 418 |
|
419 | 419 |
OK. GitPrep suport time zone. You can set time_zone option in conig file. |
420 | 420 |
|
... | ... |
@@ -424,6 +424,37 @@ OK. GitPrep suport time zone. You can set time_zone option in conig file. |
424 | 424 |
;;; You can set your local time zone. |
425 | 425 |
time_zone=+9:00 |
426 | 426 |
|
427 |
+### How to hide user home directory in ssh repository URL? |
|
428 |
+ |
|
429 |
+**1. Use symbolic link and ssh_repo_url_base option |
|
430 |
+ |
|
431 |
+At first, set [basic]ssh_repo_url_base option to /git |
|
432 |
+ |
|
433 |
+ ;;; SSH repository url base |
|
434 |
+ ; For exampke, If you set this value to /git, SSH repository url become |
|
435 |
+ ; ssh://kimoto@59.106.185.196/git/kimoto/gitprep.git |
|
436 |
+ ssh_repo_url_base=/git |
|
437 |
+ |
|
438 |
+And you create symbolic link to /home/gitprep/gitprep/data/rep |
|
439 |
+ |
|
440 |
+ cd / |
|
441 |
+ ln -s /home/gitprep/gitprep/data/rep /git |
|
442 |
+ chown gitprep:gitprep /git |
|
443 |
+ |
|
444 |
+**2. Use only public key authentication and set [basic]ssh_repo_url_base to empty |
|
445 |
+ |
|
446 |
+If you use only public key authentication, you can access ssh repository |
|
447 |
+using the following url. |
|
448 |
+ |
|
449 |
+ ssh://kimoto@59.106.185.196/kimoto/gitprep.git |
|
450 |
+ |
|
451 |
+If you set [basic]ssh_repo_url_base to empty string, this URL is shown on Browser. |
|
452 |
+ |
|
453 |
+ ;;; SSH repository url base |
|
454 |
+ ; For exampke, If you set this value to /git, SSH repository url become |
|
455 |
+ ; ssh://kimoto@59.106.185.196/git/kimoto/gitprep.git |
|
456 |
+ ssh_repo_url_base= |
|
457 |
+ |
|
427 | 458 |
## Web Site |
428 | 459 |
|
429 | 460 |
[GitPrep Web Site](http://perlcodesample.sakura.ne.jp/gitprep-site/) |