[release] v0.6.1

This commit is contained in:
Yann Stepienik 2023-06-06 20:50:34 +01:00
parent 1125569811
commit 55dcdfd7f5
6 changed files with 51 additions and 2 deletions

View file

@ -324,6 +324,23 @@
"DockerConfig": {
"SkipPruneNetwork": false
},
"OpenIDClients": [
{
"id": "gitea",
"secret": "$2a$10$406wbQbinog/zqpnc6amSu1UArA.zVrb/KuRkaBGJYA4oruGnxUga",
"redirect": "http://localhost:3000/user/oauth2/Cosmos/callback"
},
{
"id": "minio",
"secret": "$2a$10$cE30L/Ik3ThX0G8KX6663ujmDC5UsqAsbMGqE6zRKjI0WFD6zV.N6",
"redirect": "http://localhost:9090/oauth_callback"
},
{
"id": "nextcloud",
"secret": "$2a$10$IcpiICqki2cBnZc1.VOaYu0SPxKx6sXWyly44s0hsSNYMyfibsVAy",
"redirect": "https://localhost:12443/apps/oidc_login/oidc"
}
],
"BlockedCountries": [
"CN",
"RU",

View file

@ -36,4 +36,28 @@ export const newInstall = (req) => {
2000
);
});
}
export const getDNS = (host) => (req) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve({
"status": "ok",
"data": "199.199.199.199"
})},
100
);
});
}
export const checkHost = (host) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve({
"status": "ok",
"data": "199.199.199.199"
})},
100
);
});
}

View file

@ -94,6 +94,7 @@ const OpenIdList = () => {
let protocol = new URL(client.redirect).protocol + '//';
return getFaviconURL({
Mode: 'PROXY',
Name: client.id,
Target: protocol + hostname + (port ? ':' + port : ''),
})
} catch (e) {

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.6.0",
"version": "0.6.1",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -28,7 +28,11 @@ func Init() {
config := utils.ReadConfigFromFile()
authKey := config.HTTPConfig.AuthPrivateKey
secret := []byte(authKey[32:64])
secret := []byte("some-super-cool-secret-that-nobody-knows")
if len(authKey) > 64 {
secret = []byte(authKey[32:64])
}
foconfig := &fosite.Config{
AccessTokenLifespan: time.Minute * 30,