Skip to content

Commit

Permalink
- chore (snapweb): updated snapweb to latest version
Browse files Browse the repository at this point in the history
- added session cookie secret as a config parameter
  • Loading branch information
Mario Lukas committed Feb 9, 2023
1 parent f9da338 commit f937a6f
Show file tree
Hide file tree
Showing 14 changed files with 317 additions and 54 deletions.
3 changes: 2 additions & 1 deletion hydra.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"hydraplay": {
"port": 8080,
"source_type": "tcp",
"use_ws_proxy": "false"
"use_ws_proxy": "false",
"cookie_secret": "_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__"
},
"mopidy":{
"mpd_base_port": 6600,
Expand Down
2 changes: 1 addition & 1 deletion snapweb
Submodule snapweb updated from dcd2c2 to 4b012c
3 changes: 2 additions & 1 deletion src/config/hydra.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"hydraplay": {
"port": 8080,
"source_type": "tcp",
"use_ws_proxy": "false"
"use_ws_proxy": "false",
"cookie_secret": "_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__"
},
"mopidy":{
"mpd_base_port": 6600,
Expand Down
3 changes: 2 additions & 1 deletion src/hydraplay/config/hydra.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"hydraplay": {
"port": 8080,
"source_type": "tcp",
"ws_uri_proxy": "false"
"use_ws_proxy": "false",
"cookie_secret": "_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__"
},
"mopidy":{
"mpd_base_port": 6600,
Expand Down
2 changes: 1 addition & 1 deletion src/hydraplay/server/HydraServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ def routes(self):
(r"/api/settings", SettingsHandler, {"config": self.config}),
(r"/client/(.*)", StaticFileHandler, {"path": self.static_files+"/snapweb", "default_filename": "index.html"}),
(r"/(.*)", StaticFileHandler, {"path": self.static_files+"/player", "default_filename": "index.html"}),
], cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__")
], cookie_secret=self.config.content['hydraplay']['cookie_secret'])
1 change: 1 addition & 0 deletions src/hydraplay/server/handler/StaticFileHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from tornado.web import HTTPError
from hydraplay.server.handler.BaseHandler import BaseHandler


class StaticFileHandler(BaseHandler):
"""A simple handler that can serve static content from a directory.
Expand Down
4 changes: 1 addition & 3 deletions src/hydraplay/server/static/snapweb/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/hydraplay/server/static/snapweb/config.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/hydraplay/server/static/snapweb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#455A64">
<meta name="author" content="Johannes M. Pohl">
<meta name="version" content="0.3.0">
<meta name="version" content="0.5.0">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="manifest" href="manifest.json">
Expand Down
Loading

0 comments on commit f937a6f

Please sign in to comment.