7 Commits

Author SHA1 Message Date
86cc2ea889 add cors
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 14:04:13 +02:00
5aecf1ef26 allow telegram on failure
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 13:53:47 +02:00
085fc3b179 set localhost to public
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 13:42:20 +02:00
66358bdd05 set localhost to public
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2022-07-18 13:40:17 +02:00
2608b10efa Without env
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 13:33:27 +02:00
92ce57dc60 With auto_tag
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 13:31:50 +02:00
05745f51ad 07-17-remove_ticker (#2)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://git.front.kjuulh.io/kjuulh/scel/pulls/2
2022-07-18 13:17:02 +02:00
4 changed files with 10 additions and 13 deletions

View File

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

7
.env
View File

@@ -1,7 +0,0 @@
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 +1,2 @@
target/
.env

View File

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