P
Postizβ€’2w ago
Support

Ticket: Issue with .env & yml setup on Synology NAS

@BoondockKid Just created a ticket
Question: Can anyone look at my .env and yml and tell me what i am doing wrong?
Attempted: multple installs - can't get past creating an account
Working On: Synoliogy NAS
Using Postiz On: Docker-compose
Take it from here @Postiz
31 Replies
Support
SupportOPβ€’2w ago
@Postiz please help @BoondockKid
BoondockKid
BoondockKidβ€’2w ago
For some reason I cannot connect to X (see screen) and with Instagram/Facebook see screen.
BoondockKid
BoondockKidβ€’2w ago
No description
No description
m4rk
m4rkβ€’2w ago
Hey @BoondockKid have you created the app on https://developer.twitter.com/en/portal/dashboard
X (formerly Twitter)
X
m4rk
m4rkβ€’2w ago
It seems like y either you are missing the app in there or miss configured the redis Uri maybe
BoondockKid
BoondockKidβ€’2w ago
yes i created the app -- I uploaded my .env and docker-compose I am using https://postiz.andyparrish.org/integrations/social/x
m4rk
m4rkβ€’2w ago
just noticed... the invalid app Id you posted in the images is from facebook ... not from X, can you show me the error on X ?? lets try with that one first as its the easyest to create the app for . Also I just checked your .env and docker-compose files Try adding the X api key ,api secret , api client and x secret directly to the docker-compose.yml after line 24 you can use the following method : X_API_KEY: "XXXXXXXXXXXXX" X_API_SECRET: "XXXXXXXXXXXXX" X_CLIENT: "XXXXXXXXXXX" X_SECRET: "XXXXXXXXX" otherwise if you wish to have a .env file it shall be on the same folder where the docker-compose.yml is located for example /documents/postiz you shall have the docker-compose.yml and the .env there and below line 24 on your docker-compose.yml file you can add the keys in the following way. STORAGE_PROVIDER: "local" UPLOAD_DIRECTORY: "/uploads" NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads" YOUTUBE_CLIENT_ID: ${YOUTUBE_CLIENT_ID} YOUTUBE_CLIENT_SECRET: ${YOUTUBE_CLIENT_SECRET} FACEBOOK_APP_ID: ${FACEBOOK_APP_ID} FACEBOOK_APP_SECRET: ${FACEBOOK_APP_SECRET} X_API_KEY: ${X_API_KEY} X_API_SECRET: ${X_API_SECRET}
m4rk
m4rkβ€’2w ago
This is an example of how it can look like
No description
m4rk
m4rkβ€’2w ago
remember to keep correct indentation πŸ™‚ let me know if I explained myself correctly πŸ™‚ and the results πŸ™‚ @dom let me know if this works for you
BoondockKid
BoondockKidβ€’2w ago
I wil try this later today
dom
domβ€’2w ago
Nope, unfortunately. I already had all four in the docker-compose.yaml file itself. Although I did use TWITTER_CLIENT_ID and TWITTER_CLIENT_SECRET but nothing changes when I use X_CLIENT and X_SECRET instead. Solved it. I just deleted everything except the docker-compose.yaml and now it works. Weird. I recreated the containers multiple times (with docker compose down and up). Well, thanks for the help anyway :)
m4rk
m4rkβ€’2w ago
maybe something went odd . but glad to hear you solve out πŸ™‚ @BoondockKid did it work for you ?
BoondockKid
BoondockKidβ€’2w ago
IDK - i will try I am 46 years old and need a teenager to help me and the kids are at school. I requested Marius Hosting to do a tutorial on this.
m4rk
m4rkβ€’2w ago
Hehe I feel ya on this
BoondockKid
BoondockKidβ€’2w ago
@m4rk are there any tutorials on how to make this twitter app? there is an oAuth 1 and oAuth 2 Ya I think I am just fucked
m4rk
m4rkβ€’2w ago
It’s pretty much what it says ob documentation Ad the postiz site It’s the easiest to crear if all for me hehe but if needed I’ll gladly help
BoondockKid
BoondockKidβ€’2w ago
I am using docker-compose
No description
m4rk
m4rkβ€’2w ago
Let me try to build a small tutorial for you πŸ™‚ Si you know how to edit the docker-compose.yml file
BoondockKid
BoondockKidβ€’2w ago
yes that I can do -- I got logged in. But it wont connect to the services two other synology people reached out to me -- do you want access to my NAS
m4rk
m4rkβ€’2w ago
Try this instead of what you have at your docker-compose.yml YOUTUBE_CLIENT_ID: "71296364281-33id6ge8dblu26t562el6is32odnipl7.apps.googleusercontent.com" YOUTUBE_CLIENT_SECRET: "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" FACEBOOK_APP_ID: "1619811955218122" FACEBOOK_APP_SECRET: "353e7c98e8c8d127d9c2d111178a3faf" X_API_KEY: "r02ry0qkx7tTR2WDmGClxTLLu" X_API_SECRET: "xfkGLdGQ2FOVW57SSYQJDXXZ5qSSxY9M9oZ77qimNzrq06N2KW"
m4rk
m4rkβ€’2w ago
For the X app ( formerly twitter) just follow this : https://docs.postiz.com/providers/x
Postiz Documentation
X - Postiz Docs
Postiz - Open source social media scheduling tool
BoondockKid
BoondockKidβ€’2w ago
I think I am going to just pay for postiz 😦
No description
BoondockKid
BoondockKidβ€’2w ago
HOLY FUCK I TJUST CONNECTED TO TWITTER FUCK YES! JUST ADDED YOUTUBE! YAY! FACEBOOK IS CONNECTED!
m4rk
m4rkβ€’2w ago
I get same on youtube and I dunno how to create the app :S documentation is very outdated
BoondockKid
BoondockKidβ€’7d ago
You have to make sure the YT callback URI is correct fella's - for instagram professional what shoudl I add to my docker-compose.yml? RN its connected to my facebook business page
m4rk
m4rkβ€’6d ago
Just check Instagram documentation and follow the pattern like the others you got
Ketseum
Ketseumβ€’5d ago
@BoondockKid my friend, can we close the ticket ?
BoondockKid
BoondockKidβ€’5d ago
yup
m4rk
m4rkβ€’3d ago
@Support close ticket

Did you find this page helpful?