Mozilla: Unterschied zwischen den Versionen
Aus Vosp.info
F (Diskussion | Beiträge) (→Firefox Accounts Server) |
F (Diskussion | Beiträge) (→Fehler) |
||
Zeile 143: | Zeile 143: | ||
npm audit fix --force | npm audit fix --force | ||
npm audit | npm audit | ||
+ | |||
+ | </source> | ||
+ | |||
+ | ===== (node:16131) UnhandledPromiseRejectionWarning: Error: listen EADDRINUSE 127.0.0.1:9001 ===== | ||
+ | |||
+ | Fehler wie diese bedeuten oft das der port schon benutzt wird, deshalb mal checken | ||
+ | |||
+ | <source lang=bash> | ||
+ | netstat -tulpen | ||
</source> | </source> |
Version vom 15. September 2018, 17:49 Uhr
Inhaltsverzeichnis
Thunderbird / Icedove
Firefox / Iceweasel
Addons
- ghostery
- downloadhelper
- addblock plus
- WIFI Finder
- Empty Cache Button
firefox syncronisation
Firefox Accounts Server
fxa-auth-server
git clone git://github.com/mozilla/fxa-auth-server.git
cd fxa-auth-server
npm install
syncserver
- https://github.com/mozilla-services/syncserver
- https://mozilla-services.readthedocs.io/en/latest/howtos/run-sync-1.5.html
- https://sathya.de/blog/how-tos/setup-your-own-firefox-1-5-sync-server-on-debian-with-apache2-and-mysql/
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
- identity_provider
- https://github.com/mozilla/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
(node:16131) UnhandledPromiseRejectionWarning: Error: listen EADDRINUSE 127.0.0.1:9001
Fehler wie diese bedeuten oft das der port schon benutzt wird, deshalb mal checken
netstat -tulpen