Centralize configuration and add some new config #494
无评审员
标签
未选择标签
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
未选择里程碑
暂无项目
未指派成员
2 位参与者
通知
到期时间
未设置到期时间。
依赖工单
没有设置依赖项。
引用:Plume/Plume#494
正在加载…
添加表格
在新工单中引用
没有提供说明。
删除分支 "config"
删除分支是永久的。虽然已删除的分支在实际被删除前有可能会短时间存在,但这在大多数情况下无法撤销。是否继续?
Ideally, if someone could review the idea in this comment, I'd like to add the implementation to this pr too
Codecov Report
Not really related, but I'm thinking about it because I'm seeing it: shouldn't we drop this setting and force people to set up HTTPS? I introduced it to make it easier to develop locally, but now this requires HTTPS too because of CSRF.
@ -115,38 +127,14 @@ Then try to restart Plume.
})
Isn't there a way to use the
Config
struct from rocket directly in ourconfig
module instead ofRocketConfig
?@ -115,38 +127,14 @@ Then try to restart Plume.
})
RocketConfig
could become aResult<rocket::Config>
(Result to denote when there was an error creating the Config, or when there is no secret key). I through of it at some point, but did not remember what I wanted to do when I was about to commitWe should probably, http does not work well anyway
As someone on Matrix said they were using Plume on a Tor Hidden Service, I tried to see if this won't cause any CSRF issues, and apparently Tor Browser consider hidden service to be secure even without https, that's nice
Looks good. Thanks. 😊
It was incomplete >_<
Sorry… I didn't saw you added the "Incomplete" label… 🤦♀️
No worries, I made another pr with what I wanted to add
Would be rad if 'plm' honored this config as well. Fortunately, easy to workaround with command line flag.
@khimaros you can open an issue with what you think would be a better comportment 😉