Rin0913 / system-judge

An online judge system for testing systems and services, such as web, DNS, and mail servers.
Apache License 2.0
2 stars 0 forks source link

System Judge Backend

Prerequisite

Network:

iptables -A FORWARD -j ACCEPT
sysctl -w net.ipv4.ip_forward=1

Tools:

Deployment

  1. Create a .env file referencing the sample file.
  2. Fill the parameters into the .env file.
JWT_SECRET=""

HARBOR_HOST=""
HARBOR_USER=""
HARBOR_PASSWORD=""
HARBOR_PROJECT=""

LDAP_HOST="ldap://localhost"
LDAP_ENABLE_TLS=no
LDAP_CA_PATH=""
LDAP_USER_BASE_DN="ou=People,dc=example,dc=org"
LDAP_ADMIN_GROUP_DN="cn=admin,ou=Group,dc=example,dc=org"

WG_LISTEN_IP="localhost"

K8S_NAMESPACE="judge"
K8S_KUBE_CONFIG="/etc/kubernetes/admin.conf"
RUNTIME_CONFIG="Production"

Make sure the parameters listed above are not empty. If you are not using LDAP authentication, you can just skip them.

Notices:

Warnings: