Compare commits
3 Commits
86cc2ea889
...
07-17-remo
Author | SHA1 | Date | |
---|---|---|---|
f4ea2d98ab | |||
e616179774
|
|||
e0262a7f17
|
@@ -24,6 +24,8 @@ steps:
|
||||
from_secret: telegram_token
|
||||
to: 2129601481
|
||||
format: markdown
|
||||
depends_on:
|
||||
- server
|
||||
when:
|
||||
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/
|
||||
.env
|
||||
|
@@ -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 }
|
||||
}
|
||||
|
Reference in New Issue
Block a user