Skip to content

Commit b6913d3

Browse files
Add .env file support in Docker Compose and set default URI prefix in custom.js
1 parent 14555c5 commit b6913d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ services:
88
- "8000:8081"
99
volumes:
1010
- ./db:/var/lib/pastebin/
11+
env_file:
12+
- .env
1113

1214
nginx:
1315
image: "nginx"

static/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$(document).ready(function() {
2-
const uri_prefix = process.env.URI;
2+
const uri_prefix = process.env.URI || "";
33

44
function replaceUrlParam(url, param, value) {
55
if (value == null) {

0 commit comments

Comments
 (0)