Skip to content

Commit

Permalink
rename github.com/zixia/bbs.zixia.net -> github.com/zixia/bbs
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jan 26, 2021
1 parent 2a42404 commit 0a57236
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:5.3
MAINTAINER "Huan <[email protected]>"
LABEL maintainer="Huan <[email protected]>"
LABEL org.opencontainers.image.source="https://github.com/zixia/bbs.zixia.net"
LABEL org.opencontainers.image.source="https://github.com/zixia/bbs"

# BBS SSH
EXPOSE 22
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ test:

.PHONY: build
build:
docker build -t bbs.zixia.net .
docker build -t bbs .

.PHONY: run
run:
./scripts/run.sh

.PHONY: pull
pull:
docker pull ghcr.io/zixia/bbs.zixia.net
docker pull ghcr.io/zixia/bbs

.PHONY: clean
clean:
docker rmi bbs.zixia.net
docker rmi bbs

.PHONY: version
version:
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 大话西游 zixia BBS

- README: <https://www.zixia.net/bbs.zixia.net>
- GitHub: <https://github.com/zixia/bbs.zixia.net>
- README: <https://www.zixia.net/bbs>
- GitHub: <https://github.com/zixia/bbs>
- Term: <a href="telnet://bbs.zixia.net">telnet://bbs.zixia.net</a>

![大话西游紫霞BBS](docs/images/zixia-bbs-login.png)

zixia BBS is a famouse BBS ([Bulletin Board System](https://en.wikipedia.org/wiki/Bulletin_board_system)) in Tsinghua university founded in 1998, created by Huan who's id is `zixia`. The zixia BBS is built on top of the source code of the largest campus BBS [水木清华BBS/水木社区](https://newsmth.net): [KBS_BBS](http://kcn.cn/) system, maintained by [KCN](http://kcn.cn).

For any questions and support request, please go to our GitHub discussion at <https://github.com/zixia/bbs.zixia.net/discussions>
For any questions and support request, please go to our GitHub discussion at <https://github.com/zixia/bbs/discussions>

## Features

Expand All @@ -25,10 +25,10 @@ For any questions and support request, please go to our GitHub discussion at <ht
> Learn how to build from `kbs_bbs` source for zixia bbs from the [Dockerfile](Dockerfile)
```sh
git clone https://github.com/zixia/bbs.zixia.net.git
cd bbs.zixia.net
git clone https://github.com/zixia/bbs.git
cd bbs

docker build -t bbs.zixia.net .
docker build -t bbs .
```

## Run
Expand All @@ -47,7 +47,7 @@ docker run \
-e VIRTUAL_HOST=bbs.zixia.net,*.bbs.zixia.net,wforum.zixia.net,*.wforum.zixia.net \
-e LETSENCRYPT_HOST=bbs.zixia.net,wforum.zixia.net \
-e HTTPS_METHOD=noredirect \
ghcr.io/zixia/bbs.zixia.net
ghcr.io/zixia/bbs
```

> Replace the above port(2222, 22222, 2323, 8080), volume(/data/bbs), and environment variables with your own value to fit your settings.
Expand All @@ -74,7 +74,7 @@ For example, the args `-v /data/bbs:/bbs` will mount the local `/data/bbs` folde
The KBS sytem is using GBK for encoding so we need to use `luit` to convert GBK to UTF8

```sh
luit -encoding GBK ssh zixia@bbs.zixia.net
luit -encoding GBK ssh guest@bbs.zixia.net

# or

Expand Down Expand Up @@ -117,7 +117,7 @@ The bbs.zixia.net is currently hosted on [Microsoft Azure Cloud](https://azure.c

### v21 Jan 25, 2021

The <telnet://bbs.zixia.net> has been fully dockerized & cloudified on Azure Cloud!
The `telnet://bbs.zixia.net` has been fully dockerized & cloudified on Azure Cloud!

### v20 Dec 30, 2020

Expand Down
2 changes: 1 addition & 1 deletion kbs_bbs/site/zixia.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

/**
* Huan(202101): do not delete user when their life less than 0
* https://github.com/zixia/bbs.zixia.net/issues/3
* https://github.com/zixia/bbs/issues/3
*/
#define SAVELIVE

Expand Down
2 changes: 1 addition & 1 deletion root/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# https://github.com/zixia/bbs.zixia.net
# https://github.com/zixia/bbs
#
# Author: Huan <[email protected]>
# Date: Jan 2021
Expand Down
6 changes: 4 additions & 2 deletions root/etc/motd
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
___________________________________________________________________


Welcome to Zixia BBS Server!

This system is run as a Docker container,
you can learn it more from source code at
https://github.com/zixia/bbs.zixia.net
https://github.com/zixia/bbs

Please feel free to post at
https://github.com/zixia/bbs.zixia.net/discussions
https://github.com/zixia/bbs/discussions
if you have any qustions.

Huan <[email protected]>
Jan 5, 2021

___________________________________________________________________
2 changes: 1 addition & 1 deletion root/etc/services.d/apache/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bash
#
# Author: Huan <[email protected]>
# https://github.com/zixia/bbs.zixia.net
# https://github.com/zixia/bbs
# Jan 5, 2021
#

Expand Down
6 changes: 3 additions & 3 deletions scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -o pipefail

# https://github.com/zixia/bbs.zixia.net/issues/12
# https://github.com/zixia/bbs/issues/12
GDB_OPTIONS=\
--cap-add=SYS_PTRACE \
--security-opt apparmor=unconfined \
Expand All @@ -25,9 +25,9 @@ docker run \
$GDB_OPTIONS \
$PORT_OPTIONS \
$ENV_OPTIONS \
--name bbs.zixia.net \
--name bbs \
-v /data/bbs:/bbs \
ghcr.io/zixia/bbs.zixia.net
ghcr.io/zixia/bbs
# --entrypoint bash \
# bbs.zixia.net

0 comments on commit 0a57236

Please sign in to comment.