Mozilla: Unterschied zwischen den Versionen
Aus Vosp.info
F (Diskussion | Beiträge) (→minimal installation) |
F (Diskussion | Beiträge) (→minimal installation) |
||
Zeile 17: | Zeile 17: | ||
* https://sathya.de/blog/how-tos/setup-your-own-firefox-1-5-sync-server-on-debian-with-apache2-and-mysql/ | * https://sathya.de/blog/how-tos/setup-your-own-firefox-1-5-sync-server-on-debian-with-apache2-and-mysql/ | ||
− | ==== | + | ==== installation ==== |
<source lang=bash> | <source lang=bash> | ||
+ | |||
+ | apt-get install libapache2-mod-wsgi | ||
+ | |||
git clone https://github.com/mozilla-services/syncserver | git clone https://github.com/mozilla-services/syncserver | ||
cd syncserver/ | cd syncserver/ | ||
Zeile 26: | Zeile 29: | ||
</source> | </source> | ||
+ | |||
+ | ==== Konfiguration ==== | ||
<source lang=sql> | <source lang=sql> | ||
Zeile 53: | Zeile 58: | ||
allow_new_users = true | allow_new_users = true | ||
force_wsgi_environ = false | force_wsgi_environ = false | ||
+ | </source> | ||
+ | |||
+ | ===== apache ===== | ||
+ | <source lang=apache> | ||
+ | <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> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
</source> | </source> | ||
Version vom 15. September 2018, 15:10 Uhr
Inhaltsverzeichnis
Thunderbird / Icedove
Firefox / Iceweasel
Addons
- ghostery
- downloadhelper
- addblock plus
- WIFI Finder
- Empty Cache Button
firefox syncronisation
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
<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