Firefox syc server

Currently reading
Firefox syc server

53
10
NAS
Ds918+, DS718
Router
  1. RT2600ac
Operating system
  1. Windows
Mobile operating system
  1. Android
Hello,
I try to setup a mozilla sync server but can't get it to work.
I use this docker Docker Hub
and i do the staps as describe.
This is my config file.

Code:
[server:main]
use = egg:gunicorn
host = 0.0.0.0
port = 5000
workers = 1
timeout = 30

# SSL Support - uncomment the following lines to use ssl certificates
# don't forget to change your public_url prefix to https
#keyfile = privatekey.key
#certfile = certificate.crt

forwarded_allow_ips = *
#debug = True
#accesslog = -
errorlog = -
loglevel = warning

[app:main]
use = egg:syncserver

[syncserver]
# This must be edited to point to the public URL of your server,
# i.e. the URL as seen by Firefox.
public_url = http://d****ail.nl:5100

# This defines the database in which to store all server data.
sqluri = sqlite:////data/syncserver.db

# This is a secret key used for signing authentication tokens.
# It should be long and randomly-generated.
# The following command will give a suitable value on *nix systems:
#
#    head -c 20 /dev/urandom | sha1sum
#
# If not specified then the server will generate a temporary one at startup.
secret = f413ab4b731a5c19305f0520920014970b73fd

# Set this to "false" to disable new-user signups on the server.
# Only request by existing accounts will be honoured.
# allow_new_users = false

# Set this to "true" to work around a mismatch between public_url and
# the application URL as seen by python, which can happen in certain reverse-
# proxy hosting setups.  It will overwrite the WSGI environ dict with the
# details from public_url.  This could have security implications if e.g.
# you tell the app that it's on HTTPS but it's really on HTTP, so it should
# only be used as a last resort and after careful checking of server config.
force_wsgi_environ = true

# Uncomment and edit the following to use a local BrowserID verifier
# rather than posting assertions to the mozilla-hosted verifier.
# Audiences should be set to your public_url without a trailing slash.
[browserid]
backend = tokenserver.verifiers.LocalVerifier
audiences = http://10.0.1.27:5100

I have create a user and a group. The user id is 1040 but i dont know the id of the group so i have set it also to 1040.
further i have removed the / in the data path it was /data/ now it is /data i don't know if it is relevant but just saying...

I don't know why i must set the user because you need to login with a email adres as.

If i'll try http://d****ail.nl:5100 i see the message 'it works'

in firefox i also have changed the identity.sync.tokenserver.uri to http://d****ail.nl:5100/token/1.0/sync/1.5

then i have closed firefox. and start it again.
When i try to login i must fill in my email and password and i have to enter a code thas was send to my email.

After that i see a warning that i need to login again.
If i login i still see the warning.

Can someone help me with it?
 
The image is designed to run the main process as a restricted user (which is the right thing to do!).
In order to be in full controll which UID and GID this restricted user will have, a feature is implementend in the entrypoint script that takes care to replace the uid:gid with those you passed in as environment variables.

Why is this done? To takle permission problems with mounted host paths into docker volumes. You need to use the UID and GID of the owner of the host path. Another, less clean, alternative is to `chmod 777' the folder.

You can check the UID and GID on your ds like this on the shell:
- of the user: id
- of the folder: stat -c 'User: %U(%u), Group: %G(%g)' /volume1/docker/my/folder/ (of course you need to replace the folder with whatevery you intend to use)
 
53
10
NAS
Ds918+, DS718
Router
  1. RT2600ac
Operating system
  1. Windows
Mobile operating system
  1. Android
Thank you for pointing me in right direction. I guess it now works
 
53
10
NAS
Ds918+, DS718
Router
  1. RT2600ac
Operating system
  1. Windows
Mobile operating system
  1. Android
Yes i have tried to but it doesn't work.
I gave up.
I now use firefox's sync server.
 
97
27
53
10
NAS
Ds918+, DS718
Router
  1. RT2600ac
Operating system
  1. Windows
Mobile operating system
  1. Android
I will try this weekend again. I couldn't test with two desktops. I didn't get to work with my phone.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Similar threads

Similar threads

Trending threads

Top