Mozilla

Aus Vosp.info
Wechseln zu:Navigation, Suche

Thunderbird / Icedove

Firefox / Iceweasel

Addons

  • ghostery
  • downloadhelper
  • addblock plus
  • WIFI Finder
  • Empty Cache Button


firefox syncronisation

syncserver

installation

apt-get install libapache2-mod-wsgi

git clone https://github.com/mozilla-services/syncserver
cd syncserver/
make build 
make test
make serve

Konfiguration

create database dbname;
create user 'dbuser'@'localhost' identified by 'dbpasswd';
grant all on dbname.* to 'dbuser'@'localhost';
  • syncserver/syncserver.ini
[server:main]
use = egg:gunicorn
host = 0.0.0.0
port = 5000
workers = 1
timeout = 30

[syncserver]
# public_url = http://firefox.domain.tld:5000/
public_url = http://firefox.domain.tld/

identity_provider = https://accounts.firefox.com/

#sqluri = sqlite:////var/www/domain.tld/syncserver.db
sqluri = pymysql://dbuser:dbpasswd@localhost:3306/dbname

allow_new_users = true
force_wsgi_environ = false
apache

Achtung: wichtig ist das user und group richtig angegeben werden und alle rechte existieren!!

<VirtualHost *:80>
        ServerName  firefox.domain.tld
        Redirect permanent / https://firefox.domain.tld/
</VirtualHost>

<VirtualHost *:443>
        SSLEngine On
        ServerName firefox.domain.tld
        ServerAdmin webmaster@localhost
		DocumentRoot /var/www/firefox.domain.tld/syncserver
		WSGIProcessGroup sync
		WSGIDaemonProcess sync user=ubuntu group=ubuntu processes=2 threads=25 python-path=/var/www/firefox.domain.tld/syncserver/local/lib/python2.7/site-packages/
		WSGIPassAuthorization On
		WSGIScriptAlias / /var/www/firefox.domain.tld/syncserver/syncserver.wsgi
        LogLevel info
        ErrorLog ${APACHE_LOG_DIR}/error.firefox.domain.tld.log
        CustomLog ${APACHE_LOG_DIR}/access.firefox.domain.tld.log combined
      <Directory /var/www/firefox.domain.tld/>
                Require all granted
                Order allow,deny
                Allow from all
                Options -MultiViews
      </Directory>
      ServerSignature Off
      SSLCertificateKeyFile /etc/ssl/private/ssl.key
      SSLCertificateFile /etc/ssl/private/ssl.crt
      SSLCertificateChainFile /etc/ssl/private/ssl.cer
      SetEnv nokeepalive ssl-unclean-shutdown
</VirtualHost>

fxa-oauth-server

minimal installation

git clone https://github.com/mozilla/fxa-oauth-server
cd fxa-oauth-server/
npm install
npm start
# ..... 
# fxa-oauth-server.bin.server.INFO: listening http://127.0.0.1:9010

Fehler

npm WARN lifecycle fxa-oauth-server@1.120.0~postinstall: cannot run in wd fxa-oauth-server@1.120.0 node scripts/gen_keys (wd=fxa-oauth-server)
npm vllt mal nicht als root ausführen
npm fixing helpers
npm audit fix
npm audit fix --force
npm audit