[+] Redirect option

pull/17/head
Azalea 2024-03-03 00:29:48 -05:00
parent 2ba5073d55
commit 32eb98361a
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,8 @@ allnet.server.check-keychip=false
allnet.server.keychip-ses-clean-interval=86400000 allnet.server.keychip-ses-clean-interval=86400000
## Token that haven't been used for this amount of time will be removed from the database. Default is 2 days. ## Token that haven't been used for this amount of time will be removed from the database. Default is 2 days.
allnet.server.keychip-ses-expire=172800000 allnet.server.keychip-ses-expire=172800000
## Redirect url when someone open this game server in a browser.
allnet.server.redirect=https://aquadx.net
## Http Server Port ## Http Server Port
## Only change this if you have a reverse proxy running. ## Only change this if you have a reverse proxy running.

View File

@ -25,6 +25,7 @@ class AllNetProps {
var port: Int? = null var port: Int? = null
val keychipSesExpire: Long = 172800000 // milliseconds val keychipSesExpire: Long = 172800000 // milliseconds
var checkKeychip: Boolean = false var checkKeychip: Boolean = false
var redirect: String = "web"
var placeName: String = "" var placeName: String = ""
var placeId: String = "123" var placeId: String = "123"
@ -67,7 +68,7 @@ class AllNet(
) { ) {
@API("/") @API("/")
fun root(response: HttpServletResponse) { fun root(response: HttpServletResponse) {
response.sendRedirect("web") response.sendRedirect(props.redirect)
} }
@API("/sys/test") @API("/sys/test")