Fixing some front end pictshare to pictrs conversions, removing unecessary nginx. #49

Closed
dessalines wants to merge 30 commits from use-pictrs-1 into use-pictrs
Owner
No description provided.
dessalines reviewed 2020-06-09 21:20:52 +00:00
@ -41,1 +41,4 @@
lemmy_docker_image: "dessalines/lemmy:{{ lookup('file', 'VERSION') }}"
lemmy_port: "8536"
pictshare_port: "8537"
iframely_port: "8538"
Author
Owner

I'm not sure if these need to stay here or not.

I'm not sure if these need to stay here or not.
Owner

They dont seem to be used anywhere. If the playbook still works after removing them, they are useless.

They dont seem to be used anywhere. If the playbook still works after removing them, they are useless.
dessalines reviewed 2020-06-09 21:21:13 +00:00
@ -79,3 +83,3 @@
location /iframely/ {
proxy_pass http://0.0.0.0:8538/;
proxy_pass http://0.0.0.0:8061/;
Author
Owner

Going back to its original, all these are the default in master

Going back to its original, all these are the default in master
Author
Owner

Just added the embed and url caching.

Just added the embed and url caching.
Owner

Based on the pict-rs readme, we need to block POST /import in nginx. Otherwise this looks good, and you can merge it directly into master.

I also created the migration script (untested so far), but I'm not sure where to put it.

https://gist.github.com/Nutomic/1facbbb966754cb31e05d3fbdedd0a4d

Based on the [pict-rs readme](https://git.asonix.dog/asonix/pict-rs/), we need to block POST /import in nginx. Otherwise this looks good, and you can merge it directly into master. I also created the migration script (untested so far), but I'm not sure where to put it. https://gist.github.com/Nutomic/1facbbb966754cb31e05d3fbdedd0a4d
Author
Owner

Another thing, is it possible to add an nginx redirect for current pictshares?

IE this link: https://communism.lemmy.ml/pictshare/uszyuc.png

Needs to get redirected.

Another thing, is it possible to add an nginx redirect for current pictshares? IE this link: https://communism.lemmy.ml/pictshare/uszyuc.png Needs to get redirected.
Owner

I guess the cleanest option is something like this (untested).

location /pictshare/ {
    rewrite 301 some-regex-here;
}

https://www.nginx.com/blog/creating-nginx-rewrite-rules/

I guess the cleanest option is something like this (untested). ``` location /pictshare/ { rewrite 301 some-regex-here; } ``` https://www.nginx.com/blog/creating-nginx-rewrite-rules/
nutomic closed this pull request 2020-06-22 16:26:16 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LemmyNet/lemmy#49
No description provided.