forked from Ptt-official-app/go-bbs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge with dockerfile (Ptt-official-app#15)
* Dockerfile based on bbsdocker/imageptt 1. config with 01-config-docker.go.template and 01-config.docker.ini 2. Shm.Raw to calculate offset correctly. 3. scripts for docker_build.sh and docker_run.sh * pass tests * config * config * config
- Loading branch information
1 parent
9da66f0
commit ca050c0
Showing
49 changed files
with
1,557 additions
and
822 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// +build production | ||
|
||
package ptttype | ||
|
||
const ( | ||
// These are special config variables requiring to be const. | ||
// copy to ptttype/00-config-production.go to setup production config. | ||
// | ||
// type struct requires const. | ||
MAX_USERS = 100 /* 最高註冊人數 */ | ||
|
||
MAX_ACTIVE = 31 /* 最多同時上站人數 */ | ||
|
||
MAX_BOARD = 1024 /* 最大開板個數 */ | ||
|
||
////////// | ||
//config.h | ||
////////// | ||
HASH_BITS = 16 /* userid->uid hashing bits */ | ||
|
||
MAX_FRIEND = 256 /* 載入 cache 之最多朋友數目 */ | ||
|
||
MAX_REJECT = 32 /* 載入 cache 之最多壞人數目 */ | ||
|
||
MAX_MSGS = 10 /* 水球(熱訊)忍耐上限 */ | ||
|
||
MAX_ADBANNER = 500 /* 最多動態看板數 */ | ||
|
||
HOTBOARDCACHE = 10 /* 熱門看板快取 */ | ||
|
||
MAX_FROM = 300 /* 最多故鄉數 */ | ||
|
||
MAX_REVIEW = 7 /* 最多水球回顧 */ | ||
|
||
NUMVIEWFILE = 14 /* 進站畫面最多數 */ | ||
|
||
MAX_ADBANNER_SECTION = 10 /* 最多動態看板類別 */ | ||
|
||
MAX_ADBANNER_HEIGHT = 11 /* 最大動態看板內容高度 */ | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// OS Settings 作業系統相關設定 | ||
|
||
MAXPATHLEN = 256 | ||
|
||
PATHLEN = 256 | ||
) |
Oops, something went wrong.