wslink 2.4.0__py3-none-any.whl → 2.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wslink/backends/aiohttp/__init__.py +7 -1
- {wslink-2.4.0.dist-info → wslink-2.5.0.dist-info}/METADATA +1 -1
- {wslink-2.4.0.dist-info → wslink-2.5.0.dist-info}/RECORD +5 -5
- {wslink-2.4.0.dist-info → wslink-2.5.0.dist-info}/WHEEL +0 -0
- {wslink-2.4.0.dist-info → wslink-2.5.0.dist-info}/top_level.txt +0 -0
@@ -93,6 +93,9 @@ class WebAppServer(AbstractWebApp):
|
|
93
93
|
|
94
94
|
if "static" in server_config:
|
95
95
|
static_routes = server_config["static"]
|
96
|
+
follow_symlinks = server_config["static_follow_symlinks"] if "static_follow_symlinks" in server_config else False
|
97
|
+
follow_symlinks = follow_symlinks or bool(int(os.environ.get("WSLINK_FOLLOW_SYMLINKS", 0)))
|
98
|
+
|
96
99
|
routes = []
|
97
100
|
|
98
101
|
# Ensure longer path are registered first
|
@@ -100,7 +103,10 @@ class WebAppServer(AbstractWebApp):
|
|
100
103
|
server_path = static_routes[route]
|
101
104
|
routes.append(
|
102
105
|
aiohttp_web.static(
|
103
|
-
_fix_path(route),
|
106
|
+
_fix_path(route),
|
107
|
+
server_path,
|
108
|
+
append_version=True,
|
109
|
+
follow_symlinks=follow_symlinks,
|
104
110
|
)
|
105
111
|
)
|
106
112
|
|
@@ -11,7 +11,7 @@ wslink/ssl_context.py,sha256=hNOJJCdrStws1Qf6vPvY4vTk9Bf8J5d90W3fS0cRv8o,2290
|
|
11
11
|
wslink/uri.py,sha256=woCQ4yChUqTMg9IT6YYDtUYeKmCg7OUCEgeBGA-19DY,384
|
12
12
|
wslink/websocket.py,sha256=mQCcKHM4xAjlMj3gHeuIDgk9TM9cfNniOb5y_hMMQVg,6279
|
13
13
|
wslink/backends/__init__.py,sha256=cyJGjm-YyBSyOEX81owyTbJ3YnrA6dB7--B4LnsEtHI,1214
|
14
|
-
wslink/backends/aiohttp/__init__.py,sha256=
|
14
|
+
wslink/backends/aiohttp/__init__.py,sha256=2_tDGEW3ebG_GZmMWtgQ4cDjOyDjVs3oPPXw-nfowGY,10174
|
15
15
|
wslink/backends/aiohttp/launcher.py,sha256=gHNMvtgNHEwBN_QBRDSCrTp2B4K1PsfV81rKaHi7Cxo,8897
|
16
16
|
wslink/backends/aiohttp/relay.py,sha256=oZAzIQTpsQaObWXaa-_VtoTOUQALC_QLDd9UvWspYaU,13311
|
17
17
|
wslink/backends/generic/__init__.py,sha256=Qu65gWsd2xCSsxybnDtEDI5vMjHN-F5jgPZOyNIxnGs,112
|
@@ -20,7 +20,7 @@ wslink/backends/jupyter/__init__.py,sha256=Qu65gWsd2xCSsxybnDtEDI5vMjHN-F5jgPZOy
|
|
20
20
|
wslink/backends/jupyter/core.py,sha256=F8R3uH4m6RHCrHHRiA5UAgDOLdyGbpuCSAgCZxANREk,2794
|
21
21
|
wslink/backends/tornado/__init__.py,sha256=Qu65gWsd2xCSsxybnDtEDI5vMjHN-F5jgPZOyNIxnGs,112
|
22
22
|
wslink/backends/tornado/core.py,sha256=tPMkkhWuO_ovkisVim0zcegwZKEAG4IRUdd_O_0a_R0,2157
|
23
|
-
wslink-2.
|
24
|
-
wslink-2.
|
25
|
-
wslink-2.
|
26
|
-
wslink-2.
|
23
|
+
wslink-2.5.0.dist-info/METADATA,sha256=4PzXdSrK_xFDvW8x9CbDliRSgY69RoDlms5canmH3P4,3120
|
24
|
+
wslink-2.5.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
25
|
+
wslink-2.5.0.dist-info/top_level.txt,sha256=N0d8eqvhwhfW1p1yPTmvxlbzhjz7ZyhBfysNvaFqpQY,7
|
26
|
+
wslink-2.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|