generated from VLADIMIR/template
fix
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
FROM alpine:latest
|
||||
RUN apk add --no-cache ca-certificates
|
||||
COPY bin/evening_detective_linux_arm64 /usr/local/bin/evening_detective
|
||||
COPY evening_detective_linux_arm64 /usr/local/bin/evening_detective
|
||||
RUN chmod +x /usr/local/bin/evening_detective
|
||||
CMD ["/usr/local/bin/evening_detective"]
|
||||
|
||||
@@ -172,6 +172,7 @@ func cors(h http.Handler) http.Handler {
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
w.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, PATCH, DELETE")
|
||||
w.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, ResponseType, X-Id, X-Password")
|
||||
w.Header().Set("Content-Security-Policy", "connect-src 'self' evening-detective.crabs-games.art evening-detective-admin.crabs-games.art;")
|
||||
if r.Method == "OPTIONS" {
|
||||
return
|
||||
}
|
||||
@@ -189,3 +190,4 @@ func loggingMiddleware(next http.Handler) http.Handler {
|
||||
next.ServeHTTP(w, r)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>ВД Админка</title>
|
||||
<script type="module" crossorigin src="/assets/index-r74wHSLo.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DvuAabsI.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CwoYUpL_.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
+28
-13
@@ -6,28 +6,43 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8090:8090"
|
||||
- "8100:8100"
|
||||
- "8110:8110"
|
||||
- "8120:8120"
|
||||
- "8090:8090" # api
|
||||
- "8100:8100" # user
|
||||
- "8110:8110" # admin
|
||||
- "8120:8120" # files
|
||||
networks:
|
||||
- crabs-network
|
||||
volumes:
|
||||
- data:/data
|
||||
- ./data:/data
|
||||
labels:
|
||||
reproxy.1.server: "rodniki.crabs-games.art"
|
||||
reproxy.1.route: "^/schedule"
|
||||
reproxy.1.dest: "http://pinned_message:8210/schedule"
|
||||
reproxy.1.port: "8210"
|
||||
# api
|
||||
reproxy.1.server: "evening-detective-api.crabs-games.art"
|
||||
reproxy.1.route: "/(.*)"
|
||||
reproxy.1.dest: "http://evening_detective:8090/$$1"
|
||||
reproxy.1.port: "8090"
|
||||
reproxy.1.ping: "/"
|
||||
|
||||
reproxy.2.server: "rodniki.crabs-games.art"
|
||||
# user
|
||||
reproxy.2.server: "evening-detective.crabs-games.art"
|
||||
reproxy.2.route: "/(.*)"
|
||||
reproxy.2.dest: "http://pinned_message:8220/$$1"
|
||||
reproxy.2.port: "8220"
|
||||
reproxy.2.dest: "http://evening_detective:8100/$$1"
|
||||
reproxy.2.port: "8100"
|
||||
reproxy.2.ping: "/"
|
||||
|
||||
# admin
|
||||
reproxy.3.server: "evening-detective-admin.crabs-games.art"
|
||||
reproxy.3.route: "/(.*)"
|
||||
reproxy.3.dest: "http://evening_detective:8110/$$1"
|
||||
reproxy.3.port: "8110"
|
||||
reproxy.3.ping: "/"
|
||||
|
||||
# admin
|
||||
reproxy.4.server: "evening-detective-files.crabs-games.art"
|
||||
reproxy.4.route: "/(.*)"
|
||||
reproxy.4.dest: "http://evening_detective:8120/$$1"
|
||||
reproxy.4.port: "8120"
|
||||
reproxy.4.ping: "/"
|
||||
|
||||
networks:
|
||||
crabs-network:
|
||||
name: crabs-network
|
||||
|
||||
Reference in New Issue
Block a user