mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-07 04:09:15 +02:00
feat:#34 reorder proxy paths
This commit is contained in:
@@ -168,6 +168,16 @@ http {
|
|||||||
ssl_certificate cal.htwk-leipzig.de.pem;
|
ssl_certificate cal.htwk-leipzig.de.pem;
|
||||||
ssl_certificate_key cal.htwk-leipzig.de.key.pem;
|
ssl_certificate_key cal.htwk-leipzig.de.key.pem;
|
||||||
|
|
||||||
|
location /api/feed {
|
||||||
|
proxy_pass http://htwkalender-ical:8091;
|
||||||
|
client_max_body_size 2m;
|
||||||
|
proxy_connect_timeout 600s;
|
||||||
|
proxy_read_timeout 600s;
|
||||||
|
proxy_send_timeout 600s;
|
||||||
|
send_timeout 600s;
|
||||||
|
limit_req zone=feed burst=10 nodelay;
|
||||||
|
}
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
proxy_pass http://htwkalender-data-manager:8090;
|
proxy_pass http://htwkalender-data-manager:8090;
|
||||||
client_max_body_size 20m;
|
client_max_body_size 20m;
|
||||||
@@ -268,16 +278,6 @@ http {
|
|||||||
limit_req zone=modules burst=5 nodelay;
|
limit_req zone=modules burst=5 nodelay;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/feed {
|
|
||||||
proxy_pass http://htwkalender-ical:8091;
|
|
||||||
client_max_body_size 2m;
|
|
||||||
proxy_connect_timeout 600s;
|
|
||||||
proxy_read_timeout 600s;
|
|
||||||
proxy_send_timeout 600s;
|
|
||||||
send_timeout 600s;
|
|
||||||
limit_req zone=feed burst=10 nodelay;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /_ {
|
location /_ {
|
||||||
proxy_pass http://htwkalender-data-manager:8090;
|
proxy_pass http://htwkalender-data-manager:8090;
|
||||||
# if user is not 0 in admin list, return 404
|
# if user is not 0 in admin list, return 404
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const host = "http://127.0.0.1:8090"
|
const host = "http://htwkalender-data-manager:8090"
|
||||||
|
|
||||||
func RequestApi(path string) (*client.Response, error) {
|
func RequestApi(path string) (*client.Response, error) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user