3 Commits

Author SHA1 Message Date
f4ea2d98ab feature/scel-base (#1)
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
continuous-integration/drone Build was killed
Reviewed-on: https://git.front.kjuulh.io/kjuulh/scel/pulls/1
2022-07-18 13:16:06 +02:00
e616179774 Added subscriptions 2022-07-18 10:50:52 +02:00
e0262a7f17 remove ticker 2022-07-17 21:51:46 +02:00
4 changed files with 13 additions and 10 deletions

View File

@@ -24,6 +24,8 @@ steps:
from_secret: telegram_token
to: 2129601481
format: markdown
depends_on:
- server
when:
status: [failure]

7
.env Normal file
View File

@@ -0,0 +1,7 @@
GITEA_CLIENT_ID="cea02728-3e9a-4200-9ee2-41785a8bb175"
GITEA_CLIENT_SECRET="gto_radao6mkyg2nlat4wdoovnor32mcdqpezm3okycgj5s7ou4bjqba"
GITEA_REDIRECT_URL="http://127.0.0.1:3000/auth/authorized"
GITEA_AUTH_URL="https://git.front.kjuulh.io/login/oauth/authorize"
GITEA_TOKEN_URL="https://git.front.kjuulh.io/login/oauth/access_token"
GITEA_USER_INFO_URL="https://git.front.kjuulh.io/login/oauth/userinfo"

1
.gitignore vendored
View File

@@ -1,2 +1 @@
target/
.env

View File

@@ -54,14 +54,9 @@ impl Server {
.data(app)
.finish();
let cors = vec![
"http://localhost:3000"
.parse()
.expect("Could not parse url"),
"https://scel.front.kjuulh.io"
.parse()
.expect("Could not parse url"),
];
let cors = vec!["http://localhost:3000"
.parse()
.expect("Could not parse url")];
let app = Router::new()
.route("/", routing::get(graphql_playground).post(graphql_handler))
@@ -82,7 +77,7 @@ impl Server {
.make_span_with(DefaultMakeSpan::default().include_headers(true)),
);
let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
Server { app, addr }
}