File tree 5 files changed +12
-14
lines changed
5 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 14
14
<a href="https://github.com/shaneisrael/fireshare/actions">
15
15
<img alt="Docker Build" src="https://github.com/shaneisrael/fireshare/actions/workflows/docker-publish-main.yml/badge.svg" />
16
16
</a>
17
+ <a href="https://hub.docker.com/r/shaneisrael/fireshare">
18
+ <img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/shaneisrael/fireshare?label=docker%20pulls">
19
+ </a>
17
20
<a href="https://hub.docker.com/r/shaneisrael/fireshare/tags?page=1&ordering=last_updated">
18
21
<img alt="GitHub tag (latest SemVer)" src="https://img.shields.io/github/v/tag/shaneisrael/fireshare?label=version">
19
22
</a>
20
23
<a href="https://github.com/shaneisrael/fireshare/stargazers">
21
24
<img alt="GitHub stars" src="https://img.shields.io/github/stars/shaneisrael/fireshare">
22
25
</a>
23
- <a href="https://github.com/shaneisrael/fireshare/issues">
24
- <img alt="Issues" src="https://img.shields.io/github/issues/shaneisrael/fireshare?color=0088ff" />
25
- </a>
26
- <a href="https://github.com/shaneisrael/fireshare/pulls">
27
- <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/shaneisrael/fireshare?color=0088ff" />
28
- </a>
29
26
<br />
30
27
<br />
31
28
<a href="https://v.fireshare.net">Live Demo</a>
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " fireshare" ,
3
- "version" : " 1.2.19 " ,
3
+ "version" : " 1.2.20 " ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"@emotion/react" : " ^11.9.0" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
3
+ let isLocalhost = ( window . location . hostname . indexOf ( 'localhost' ) >= 0 || window . location . hostname . indexOf ( '127.0.0.1' ) >= 0 ) && window . location . port !== '' ;
3
4
export const getServedBy = ( ) => {
4
- return ( window . location . hostname . indexOf ( 'localhost' ) >= 0 && window . location . port !== '' )
5
+ return isLocalhost
5
6
? 'flask'
6
7
: 'nginx'
7
8
}
8
9
9
10
export const getUrl = ( ) => {
10
11
const portWithColon = window . location . port ? `:${ window . location . port } ` : ''
11
- return ( window . location . hostname . indexOf ( 'localhost' ) >= 0 && window . location . port !== '' )
12
- ? `http://localhost :${ process . env . REACT_APP_SERVER_PORT || window . location . port } `
12
+ return isLocalhost
13
+ ? `http://${ window . location . hostname } :${ process . env . REACT_APP_SERVER_PORT || window . location . port } `
13
14
: `${ window . location . protocol } //${ window . location . hostname } ${ portWithColon } `
14
15
}
15
16
@@ -19,8 +20,8 @@ export const getPublicWatchUrl = () => {
19
20
return `${ shareableLinkDomain } /w/`
20
21
}
21
22
const portWithColon = window . location . port ? `:${ window . location . port } ` : ''
22
- return ( window . location . hostname . indexOf ( 'localhost' ) >= 0 && window . location . port !== '' )
23
- ? `http://localhost :${ process . env . REACT_APP_SERVER_PORT || window . location . port } /#/w/`
23
+ return isLocalhost
24
+ ? `http://${ window . location . hostname } :${ process . env . REACT_APP_SERVER_PORT || window . location . port } /#/w/`
24
25
: `${ window . location . protocol } //${ window . location . hostname } ${ portWithColon } /w/`
25
26
}
26
27
Original file line number Diff line number Diff line change 23
23
24
24
access_log /var/log/nginx/access.log main;
25
25
26
- sendfile on ;
26
+ sendfile off ;
27
27
sendfile_max_chunk 512k;
28
28
tcp_nopush on;
29
29
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Flask-Migrate==3.1.0
7
7
Flask-SQLAlchemy == 2.5.1
8
8
Flask-WTF == 1.0.1
9
9
future == 0.18.2
10
- greenlet == 1.1.2
10
+ greenlet == 3.0.3
11
11
gunicorn == 20.1.0
12
12
importlib-metadata == 4.11.3
13
13
itsdangerous == 2.1.2
You can’t perform that action at this time.
0 commit comments