go-fed / apcore

Golang ActivityPub Server Framework
GNU Affero General Public License v3.0
104 stars 10 forks source link

have debug flag trigger server to host on http instead of https #29

Closed cjslep closed 3 years ago

cjslep commented 3 years ago

Not straightforward since ActivityStreams id usually contains the scheme, so will need to make clear that no cross-over is possible (ex: cannot use debug mode on a productionized server creating data on a server serving https protocol). Lookups and the like will fail. This design choice should not be mistaken as a protection, because any new data will be created with http which would pollute the db, for any debugging/non-debugging mode.

So flipping that flag deserves a big ol' warning & confirmation.