kern / filepizza

:pizza: Peer-to-peer file transfers in your browser
https://file.pizza
Other
4.39k stars 331 forks source link

Files not transferring when built using local Dockerfile #74

Closed blacknred0 closed 5 years ago

blacknred0 commented 6 years ago

I first want to say that this is great stuff! :+1:

I have tested the Docker image from hub and it works slick. But, when I do docker build -t blacknred0/filepizza . and try to run docker run --rm -p 8080:8080 -e PORT=8080 -it blacknred0/filepizza any files that I try transferring does not work. This leads me to believe that I am missing some configuration and I would happily be able to document if I know what I am missing :smile:.

test.txt file sample

up
FilePizza
Free peer-to-peer file transfers in your browser.
We never store anything. Files only served fresh.
Choose Fileselect a file
 Donations: 1P7yFQAC3EmpvsB7K9s6bKPvXEP1LPoQnY
Cooked up by Alex Kern & Neeraj Baid while eating Sliver @ UC Berkeley · FAQ · Fork us

sender

screen shot 2017-11-06 at 7 48 11 am

receiver screenshot from 2017-11-06 07-48-00

Logs

info: FilePizza listening on :::8080
info: GET / 200 92ms url=/, host=192.168.1.185:8080, connection=keep-alive, cache-control=max-age=0, u
ser-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
e/61.0.3163.100 Safari/537.36, upgrade-insecure-requests=1, accept=text/html,application/xhtml+xml,app
lication/xml;q=0.9,image/webp,image/apng,*/*;q=0.8, dnt=1, accept-encoding=gzip, deflate, accept-langu
age=en-US,en;q=0.8,es;q=0.6, cookie=_ga=GA1.1.388681994.1509376557; _gid=GA1.1.360450477.1509975902; i
o=9KjvyyjDm7fYJKEEAAAA, method=GET, httpVersion=1.1, originalUrl=/, , statusCode=200, responseTime=92
info: GET /fonts/fonts.css 304 16ms url=/fonts/fonts.css, host=192.168.1.185:8080, connection=keep-ali
ve, user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/61.0.3163.100 Safari/537.36, accept=text/css,*/*;q=0.1, dnt=1, referer=http://192.168.1.185:808
0/, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.8,es;q=0.6, cookie=_ga=GA1.1.388681994
.1509376557; _gid=GA1.1.360450477.1509975902; io=9KjvyyjDm7fYJKEEAAAA, if-none-match=W/"55b-15f7a5f7c5
8", if-modified-since=Thu, 02 Nov 2017 01:36:39 GMT, method=GET, httpVersion=1.1, originalUrl=/fonts/f
onts.css, , statusCode=304, responseTime=16
info: GET /images/up.png 304 13ms url=/images/up.png, host=192.168.1.185:8080, connection=keep-alive,
if-none-match=W/"15cf-15f7a5f7c58", if-modified-since=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=Mozill
a/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100
Safari/537.36, accept=image/webp,image/apng,image/*,*/*;q=0.8, dnt=1, referer=http://192.168.1.185:808
0/, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.8,es;q=0.6, cookie=_ga=GA1.1.388681994
.1509376557; _gid=GA1.1.360450477.1509975902; io=9KjvyyjDm7fYJKEEAAAA, method=GET, httpVersion=1.1, or
iginalUrl=/images/up.png, , statusCode=304, responseTime=13
info: GET /app.js 200 86ms url=/app.js, host=192.168.1.185:8080, connection=keep-alive, if-none-match=
W/"68d0f-15f7a864608", if-modified-since=Thu, 02 Nov 2017 02:19:01 GMT, user-agent=Mozilla/5.0 (Macint
osh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
, accept=*/*, dnt=1, referer=http://192.168.1.185:8080/, accept-encoding=gzip, deflate, accept-languag
e=en-US,en;q=0.8,es;q=0.6, cookie=_ga=GA1.1.388681994.1509376557; _gid=GA1.1.360450477.1509975902; io=
9KjvyyjDm7fYJKEEAAAA, method=GET, httpVersion=1.1, originalUrl=/app.js, , statusCode=200, responseTime
=86
info: GET /images/pizza.png 304 2ms url=/images/pizza.png, host=192.168.1.185:8080, connection=keep-al
ive, if-none-match=W/"10dea-15f7a5f7c58", if-modified-since=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.316
3.100 Safari/537.36, accept=image/webp,image/apng,image/*,*/*;q=0.8, dnt=1, referer=http://192.168.1.1
85:8080/, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.8,es;q=0.6, cookie=_ga=GA1.1.388
681994.1509376557; _gid=GA1.1.360450477.1509975902; io=9KjvyyjDm7fYJKEEAAAA, method=GET, httpVersion=1
.1, originalUrl=/images/pizza.png, , statusCode=304, responseTime=2
info: GET /fonts/LobsterTwo.woff2 304 7ms url=/fonts/LobsterTwo.woff2, host=192.168.1.185:8080, connec
tion=keep-alive, origin=http://192.168.1.185:8080, if-none-match=W/"b7c0-15f7a5f7c58", if-modified-sin
ce=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebK
it/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36, accept=*/*, dnt=1, referer=http://19
2.168.1.185:8080/fonts/fonts.css, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.8,es;q=0
.6, cookie=_ga=GA1.1.388681994.1509376557; _gid=GA1.1.360450477.1509975902; io=7Yl3NPA6Ev1UQY46AAAC, m
ethod=GET, httpVersion=1.1, originalUrl=/fonts/LobsterTwo.woff2, , statusCode=304, responseTime=7
info: GET /fonts/QuicksandNormal.woff2 304 10ms url=/fonts/QuicksandNormal.woff2, host=192.168.1.185:8
080, connection=keep-alive, origin=http://192.168.1.185:8080, if-none-match=W/"22c8-15f7a5f7c58", if-m
odified-since=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1
) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36, accept=*/*, dnt=1, refere
r=http://192.168.1.185:8080/fonts/fonts.css, accept-encoding=gzip, deflate, accept-language=en-US,en;q
=0.8,es;q=0.6, cookie=_ga=GA1.1.388681994.1509376557; _gid=GA1.1.360450477.1509975902; io=7Yl3NPA6Ev1U
QY46AAAC, method=GET, httpVersion=1.1, originalUrl=/fonts/QuicksandNormal.woff2, , statusCode=304, res
ponseTime=10
info: GET /fonts/QuicksandBold.woff2 304 8ms url=/fonts/QuicksandBold.woff2, host=192.168.1.185:8080,
connection=keep-alive, origin=http://192.168.1.185:8080, if-none-match=W/"2428-15f7a5f7c58", if-modifi
ed-since=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) App
leWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36, accept=*/*, dnt=1, referer=htt
p://192.168.1.185:8080/fonts/fonts.css, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.8,
es;q=0.6, cookie=_ga=GA1.1.388681994.1509376557; _gid=GA1.1.360450477.1509975902; io=7Yl3NPA6Ev1UQY46A
AAC, method=GET, httpVersion=1.1, originalUrl=/fonts/QuicksandBold.woff2, , statusCode=304, responseTi
me=8
info: GET /favicon.ico 200 10ms url=/favicon.ico, host=192.168.1.185:8080, connection=keep-alive, prag
ma=no-cache, cache-control=no-cache, user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleW
ebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36, accept=image/webp,image/apng,imag
e/*,*/*;q=0.8, dnt=1, referer=http://192.168.1.185:8080/, accept-encoding=gzip, deflate, accept-langua
ge=en-US,en;q=0.8,es;q=0.6, cookie=_ga=GA1.1.388681994.1509376557; _gid=GA1.1.360450477.1509975902; _g
at=1; io=7Yl3NPA6Ev1UQY46AAAC, method=GET, httpVersion=1.1, originalUrl=/favicon.ico, , statusCode=200
, responseTime=10
info: GET /spinach-tuna-tomatoes-gorgonzola 200 118ms url=/spinach-tuna-tomatoes-gorgonzola, host=192.
168.1.185:8080, connection=keep-alive, user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (
KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36, upgrade-insecure-requests=1, accept=text/html,ap
plication/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8, dnt=1, accept-encoding=gzip
, deflate, accept-language=en-US,en;q=0.9,es;q=0.8, cookie=_gat=1; _ga=GA1.1.655837667.1509376657; _gi
d=GA1.1.646788639.1509975947; io=Slbm09ap_OPiIU3OAAAB, method=GET, httpVersion=1.1, originalUrl=/spina
ch-tuna-tomatoes-gorgonzola, , statusCode=200, responseTime=118
info: GET /fonts/fonts.css 304 2ms url=/fonts/fonts.css, host=192.168.1.185:8080, connection=keep-aliv
e, user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.
75 Safari/537.36, accept=text/css,*/*;q=0.1, dnt=1, referer=http://192.168.1.185:8080/spinach-tuna-tom
atoes-gorgonzola, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.9,es;q=0.8, cookie=_gat=
1; _ga=GA1.1.655837667.1509376657; _gid=GA1.1.646788639.1509975947; io=Slbm09ap_OPiIU3OAAAB, if-none-m
atch=W/"55b-15f7a5f7c58", if-modified-since=Thu, 02 Nov 2017 01:36:39 GMT, method=GET, httpVersion=1.1
, originalUrl=/fonts/fonts.css, , statusCode=304, responseTime=2
info: GET /images/down.png 200 13ms url=/images/down.png, host=192.168.1.185:8080, connection=keep-ali
ve, user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202
.75 Safari/537.36, accept=image/webp,image/apng,image/*,*/*;q=0.8, dnt=1, referer=http://192.168.1.185
:8080/spinach-tuna-tomatoes-gorgonzola, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.9,
es;q=0.8, cookie=_gat=1; _ga=GA1.1.655837667.1509376657; _gid=GA1.1.646788639.1509975947; io=Slbm09ap_
OPiIU3OAAAB, method=GET, httpVersion=1.1, originalUrl=/images/down.png, , statusCode=200, responseTime
=13
info: GET /app.js 200 23ms url=/app.js, host=192.168.1.185:8080, connection=keep-alive, if-none-match=
W/"68d0f-15f7a864608", if-modified-since=Thu, 02 Nov 2017 02:19:01 GMT, user-agent=Mozilla/5.0 (X11; L
inux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36, accept=*/*, dnt
=1, referer=http://192.168.1.185:8080/spinach-tuna-tomatoes-gorgonzola, accept-encoding=gzip, deflate,
 accept-language=en-US,en;q=0.9,es;q=0.8, cookie=_gat=1; _ga=GA1.1.655837667.1509376657; _gid=GA1.1.64
6788639.1509975947; io=Slbm09ap_OPiIU3OAAAB, method=GET, httpVersion=1.1, originalUrl=/app.js, , statu
sCode=200, responseTime=23
info: GET /images/pizza.png 304 1ms url=/images/pizza.png, host=192.168.1.185:8080, connection=keep-al
ive, if-none-match=W/"10dea-15f7a5f7c58", if-modified-since=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.
36, accept=image/webp,image/apng,image/*,*/*;q=0.8, dnt=1, referer=http://192.168.1.185:8080/spinach-t
una-tomatoes-gorgonzola, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.9,es;q=0.8, cooki
e=_gat=1; _ga=GA1.1.655837667.1509376657; _gid=GA1.1.646788639.1509975947; io=Slbm09ap_OPiIU3OAAAB, me
thod=GET, httpVersion=1.1, originalUrl=/images/pizza.png, , statusCode=304, responseTime=1
info: GET /fonts/LobsterTwo.woff2 304 1ms url=/fonts/LobsterTwo.woff2, host=192.168.1.185:8080, connec
tion=keep-alive, origin=http://192.168.1.185:8080, if-none-match=W/"b7c0-15f7a5f7c58", if-modified-sin
ce=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML
, like Gecko) Chrome/62.0.3202.75 Safari/537.36, accept=*/*, dnt=1, referer=http://192.168.1.185:8080/
fonts/fonts.css, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.9,es;q=0.8, cookie=_ga=GA
1.1.655837667.1509376657; _gid=GA1.1.646788639.1509975947; io=NtWTQEHb4eUjSKSbAAAD, method=GET, httpVe
rsion=1.1, originalUrl=/fonts/LobsterTwo.woff2, , statusCode=304, responseTime=1
info: GET /fonts/QuicksandBold.woff2 304 1ms url=/fonts/QuicksandBold.woff2, host=192.168.1.185:8080,
connection=keep-alive, origin=http://192.168.1.185:8080, if-none-match=W/"2428-15f7a5f7c58", if-modifi
ed-since=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36, accept=*/*, dnt=1, referer=http://192.168.1.185
:8080/fonts/fonts.css, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.9,es;q=0.8, cookie=
_ga=GA1.1.655837667.1509376657; _gid=GA1.1.646788639.1509975947; io=NtWTQEHb4eUjSKSbAAAD, method=GET,
httpVersion=1.1, originalUrl=/fonts/QuicksandBold.woff2, , statusCode=304, responseTime=1
info: GET /fonts/QuicksandNormal.woff2 304 1ms url=/fonts/QuicksandNormal.woff2, host=192.168.1.185:80
80, connection=keep-alive, origin=http://192.168.1.185:8080, if-none-match=W/"22c8-15f7a5f7c58", if-mo
dified-since=Thu, 02 Nov 2017 01:36:39 GMT, user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537
.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36, accept=*/*, dnt=1, referer=http://192.168.1
.185:8080/fonts/fonts.css, accept-encoding=gzip, deflate, accept-language=en-US,en;q=0.9,es;q=0.8, coo
kie=_ga=GA1.1.655837667.1509376657; _gid=GA1.1.646788639.1509975947; io=NtWTQEHb4eUjSKSbAAAD, method=G
ET, httpVersion=1.1, originalUrl=/fonts/QuicksandNormal.woff2, , statusCode=304, responseTime=1
f100024 commented 5 years ago

I've just test current sources. It works well. Try open link with more than one peers.

kern commented 5 years ago

seems to be fixed now, let me know if not!