public:paperless
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:paperless [2025/08/27 12:33] – daniel | public:paperless [2025/09/02 02:49] (current) – Inserted missing index.html specification daniel | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===Debian/ | ===Debian/ | ||
| - | Install Debian 14 (basic without GUI is OK) | + | Install Debian 14 (basic without GUI is sufficient) |
| - | As root, install sudo | + | Referencing [[https:// |
| - | apt install sudo | + | |
| - | + | ||
| - | Referencing [[https:// | + | |
| - | + | ||
| - | Extend sudo authority to a non-privileged user | + | |
| - | sudo user mod -aG sudo jdoe | + | |
| Extend Docker authority to a non-privileged user | Extend Docker authority to a non-privileged user | ||
| Line 19: | Line 13: | ||
| Log out and back in | Log out and back in | ||
| + | Referencing [[https:// | ||
| + | |||
| + | * **Database: | ||
| + | * Accept all other defaults | ||
| + | |||
| + | Add to path | ||
| + | export PATH=$PATH:/ | ||
| + | |||
| + | List active containers | ||
| + | docker-compose ls | ||
| + | |||
| + | Stop, start Paperless-NGX container as daemon | ||
| + | cd / | ||
| + | docker-compose down | ||
| + | docker-compose up -d | ||
| + | |||
| + | Stop, start dockerd service | ||
| + | sudo systemctl stop docker | ||
| + | sudo systemctl start docker | ||
| + | |||
| + | ===Place Paperless-NGX Behind Apache Reverse Proxy=== | ||
| + | |||
| + | In / | ||
| + | |||
| + | Under // | ||
| + | " | ||
| + | " | ||
| + | |||
| + | Under // | ||
| + | PAPERLESS_URL: | ||
| + | |||
| + | Install, start Apache and certbot | ||
| + | sudo apt install apache2 | ||
| + | sudo apt install certbot python3-certbot-apache | ||
| + | sudo systemctl start apache2 | ||
| + | |||
| + | In / | ||
| + | Alias / | ||
| + | |||
| + | Install Apache modules | ||
| + | sudo a2enmod proxy proxy_http ssl | ||
| + | sudo systemctl restart apache2 | ||
| + | |||
| + | Create vhost directories | ||
| + | sudo mkdir -p / | ||
| + | sudo mkdir -p / | ||
| + | |||
| + | Into / | ||
| + | < | ||
| + | < | ||
| + | <meta http-equiv=" | ||
| + | </ | ||
| + | < | ||
| + | HTTP disabled. Try <a href=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Discard or comment all lines in / | ||
| + | |||
| + | Into / | ||
| + | < | ||
| + | ServerAdmin root@example.de | ||
| + | DocumentRoot / | ||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | ServerName mysite.example.com | ||
| + | </ | ||
| + | |||
| + | Restart Apache | ||
| + | sudo / | ||
| + | |||
| + | Fetch test, production certificate | ||
| + | sudo certbot certonly --test-cert --webroot -w / | ||
| + | sudo certbot certonly --webroot -w / | ||
| + | |||
| + | To / | ||
| + | < | ||
| + | ServerAdmin root@example.com | ||
| + | DocumentRoot / | ||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | ServerName mysite.example.com | ||
| + | SSLEngine On | ||
| + | SSLProxyEngine On | ||
| + | ProxyPreserveHost On | ||
| + | ProxyRequests Off | ||
| + | ProxyPass / http:// | ||
| + | ProxyPassReverse / http:// | ||
| + | SSLCertificateFile / | ||
| + | SSLCertificateKeyFile / | ||
| + | SSLCertificateChainFile / | ||
| + | </ | ||
| + | |||
| + | Restart Apache | ||
| + | sudo / | ||
public/paperless.1756297991.txt.gz · Last modified: 2025/08/27 12:33 by daniel
