Commit 0d404cd 1 parent 46971ce commit 0d404cd Copy full SHA for 0d404cd
File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,24 @@ http {
131
131
upload_progress_json_output;
132
132
report_uploads uploads;
133
133
}
134
+
135
+ location /db_dumps/ {
136
+ # Serves files from /db_dumps/ but checks for authentication first
137
+ auth_request /auth ;
138
+ add_header Cache-Control 'public, max-age=604800'; # cache for 1 week
139
+ alias /db_dumps/;
140
+ }
141
+
142
+ # Authentication check for files
143
+ location = /auth {
144
+ internal;
145
+ proxy_redirect off;
146
+ proxy_pass_request_headers on;
147
+ proxy_pass_request_body off;
148
+ proxy_set_header Content-Length "";
149
+ proxy_pass http://nswebserver:8080/token/validate/;
150
+ }
151
+
134
152
135
153
# Passes requests on to the application server "nimstoryfont"
136
154
location /wiki1/api {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ services:
13
13
- /home/isofruit/dev/nimstoryfont/media:/imagemedia # To serve images
14
14
- /home/isofruit/Music/session_audio_backup:/session_audio # To serve audio files
15
15
- /home/isofruit/Music/session_audio_backup/extended:/session_audio/extended # To serve audio files
16
+ - /home/isofruit/dev/nimstoryfont/buildFiles/nimstoryfont/local_only_db_dumps:/db_dumps # For database access
16
17
container_name : production_nginx
17
18
restart : on-failure
18
19
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ RUN mkdir -p /cert/live/www.aldrune.com
21
21
RUN mkdir -p /cert/archive/www.aldrune.com
22
22
RUN mkdir /imagemedia
23
23
RUN mkdir /tmpfiles
24
+ RUN mkdir /db_dumps
24
25
# The session_audio directory will be mapped to a directory that also contains a /extended dir. That is an extra volume of Linode for storage
25
26
RUN mkdir /session_audio
26
27
RUN ln -s /session_audio /audiodownloads
You can’t perform that action at this time.
0 commit comments