takes configuration from same file as gunicorn

This commit is contained in:
alvierahman90
2017-10-24 22:17:45 +01:00
parent 4d392c3901
commit 2faf6233e0
4 changed files with 16 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
</head>
<body>
<form action = "http://{{ ip }}:{{ port }}/upload" method = "POST"
<form action = "/upload" method = "POST"
enctype = "multipart/form-data">
<div class="fileUpload btn">
<span>Upload</span>

View File

@@ -9,8 +9,8 @@
<script>
file = document.getElementById('file_link');
file.setAttribute('href','http://{{ ip }}:{{ port }}/download/{{ filename }}');
file.innerHTML = 'http://{{ ip }}:{{ port }}/download/{{ filename }}';
file.setAttribute('href','/download/{{ filename }}');
file.innerHTML = '/download/{{ filename }}';
</script>
</div>