-
Looking at the default example I suspect I can only have one feed generator service per hostname, and I would possibly have to purchase a domain name, then create multiple subdomains, and then have nginx proxy each subdomain to a separate Flask app. But if possible I'd rather just use one free Fly.io instance and serve multiple feed generator services from just their default subdomain for my Fly account, for example, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
You can host as many as you want feeds using only one flask server and only one domain name. The difference will be in the parameter which feed is requested You have this GET route: https://github.com/MarshalX/bluesky-feed-generator/blob/2977b0f9806af99f73cf14f6d491ce91205f1765/server/app.py#L67-L81. Inside this route, you have the To register new algorithms you should add it here: https://github.com/MarshalX/bluesky-feed-generator/blob/2977b0f9806af99f73cf14f6d491ce91205f1765/server/algos/__init__.py#L3-L5 also, you should implement another data filter for new events in the network. and store it separately in db for another algorithm. for example you can create another table in db or mark post row with name of feed. https://github.com/MarshalX/bluesky-feed-generator/blob/2977b0f9806af99f73cf14f6d491ce91205f1765/server/data_filter.py#L23 In this example algorithm equals to custom feed |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hints, I will experiment some more with this when I get a chance |
Beta Was this translation helpful? Give feedback.
You can host as many as you want feeds using only one flask server and only one domain name. The difference will be in the parameter which feed is requested
You have this GET route: https://github.com/MarshalX/bluesky-feed-generator/blob/2977b0f9806af99f73cf14f6d491ce91205f1765/server/app.py#L67-L81.
Inside this route, you have the
feed
string param. That you can use to match the feed algorithm.To register new algorithms you should add it here: https://github.com/MarshalX/bluesky-feed-generator/blob/2977b0f9806af99f73cf14f6d491ce91205f1765/server/algos/__init__.py#L3-L5
also, you should implement another data filter for new events in the network. and store it separately in db for another…