File tree 4 files changed +39
-16
lines changed
4 files changed +39
-16
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ WORKDIR /etc/nginx/
4
4
5
5
RUN rm /etc/nginx/conf.d/default.conf
6
6
7
- COPY verify-app .conf /etc/nginx/conf.d/
7
+ COPY nginx .conf .
8
8
9
9
EXPOSE 80
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ services:
7
7
restart : " always"
8
8
privileged : true
9
9
links :
10
- - " webapp:verify-app"
10
+ - " webapp1:verify-app1"
11
+ - " webapp2:verify-app2"
11
12
ports :
12
13
- " 80:80"
13
14
@@ -19,9 +20,20 @@ services:
19
20
- DISCORD_API_TOKEN=${DISCORD_API_TOKEN}
20
21
- BOT_PREFIX_CHARACTER=${BOT_PREFIX_CHARACTER}
21
22
22
- webapp :
23
+ webapp1 :
23
24
build : verify-web/.
24
- container_name : verify-app
25
+ container_name : verify-app1
26
+ restart : " always"
27
+ environment :
28
+ - RECAPTCHA_PUBLIC_KEY=${RECAPTCHA_PUBLIC_KEY}
29
+ - RECAPTCHA_PRIVATE_KEY=${RECAPTCHA_PRIVATE_KEY}
30
+ - CSRF_SECRET_KEY=${CSRF_SECRET_KEY}
31
+ - DISCORD_API_TOKEN=${DISCORD_API_TOKEN}
32
+ - DISCORD_SERVER_CHANNEL_ID=${DISCORD_SERVER_CHANNEL_ID}
33
+
34
+ webapp2 :
35
+ build : verify-web/.
36
+ container_name : verify-app2
25
37
restart : " always"
26
38
environment :
27
39
- RECAPTCHA_PUBLIC_KEY=${RECAPTCHA_PUBLIC_KEY}
Original file line number Diff line number Diff line change
1
+ events {
2
+ worker_connections 1024 ;
3
+ }
4
+
5
+ http {
6
+ upstream verify-app {
7
+ server verify-app1:8080;
8
+ server verify-app2:8080;
9
+ }
10
+
11
+ server {
12
+ listen 80 ;
13
+ listen [::]:80;
14
+
15
+ location / {
16
+ proxy_pass http://verify-app/verify;
17
+ }
18
+
19
+ location /verify {
20
+ proxy_pass http://verify-app/verify;
21
+ }
22
+ }
23
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments