Compare commits
6 Commits
86cc2ea889
...
feature/sc
Author | SHA1 | Date | |
---|---|---|---|
20950ebd5c
|
|||
62ba975afd
|
|||
4b28396134
|
|||
c2c8290dfe
|
|||
e616179774
|
|||
e0262a7f17
|
@@ -24,6 +24,8 @@ steps:
|
|||||||
from_secret: telegram_token
|
from_secret: telegram_token
|
||||||
to: 2129601481
|
to: 2129601481
|
||||||
format: markdown
|
format: markdown
|
||||||
|
depends_on:
|
||||||
|
- server
|
||||||
when:
|
when:
|
||||||
status: [failure]
|
status: [failure]
|
||||||
|
|
||||||
|
7
.env
Normal file
7
.env
Normal 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
1
.gitignore
vendored
@@ -1,2 +1 @@
|
|||||||
target/
|
target/
|
||||||
.env
|
|
||||||
|
@@ -54,14 +54,9 @@ impl Server {
|
|||||||
.data(app)
|
.data(app)
|
||||||
.finish();
|
.finish();
|
||||||
|
|
||||||
let cors = vec![
|
let cors = vec!["http://localhost:3000"
|
||||||
"http://localhost:3000"
|
.parse()
|
||||||
.parse()
|
.expect("Could not parse url")];
|
||||||
.expect("Could not parse url"),
|
|
||||||
"https://scel.front.kjuulh.io"
|
|
||||||
.parse()
|
|
||||||
.expect("Could not parse url"),
|
|
||||||
];
|
|
||||||
|
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.route("/", routing::get(graphql_playground).post(graphql_handler))
|
.route("/", routing::get(graphql_playground).post(graphql_handler))
|
||||||
@@ -82,7 +77,7 @@ impl Server {
|
|||||||
.make_span_with(DefaultMakeSpan::default().include_headers(true)),
|
.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 }
|
Server { app, addr }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user