Frappe Framework

Learn about Frappe Framework on our blog

Fail2Ban

Fail2ban to automatically block to ban IPs that show malicious signs/continuous requests. To check Fail2Ban status /etc/init.d/fail2ban status To disable /etc/init.d/fail2ban stop

read more

Multitenant Setup for frappe sites

Port based multitenancy You can create a new site and make run it on a different port (while the first one runs on port 80). Create a new site bench new-site site2name Set port bench set-nginx-port site2name 82 Re generate nginx config bench setup nginx Reload nginx...

read more

SSL on frappe site

On DNS Multitenant Setup bench config dns_multitenant on bench setup nginx sudo service nginx reload Connect Custom Domain with site bench setup add-domain [desired-domain] Example: bench setup add-domain erp.aadhilpm.com bench setup nginx sudo service nginx reload...

read more

Use Certbot to Enable HTTPS with NGINX

share: true When Certbot runs, it requests and installs certificate file along with a private key file. When used with the NGINX plugin (--nginx), Certbot also automatically edits the configuration files for NGINX, which dramatically simplifies configuring HTTPS for...

read more

View Ledger button Custom Script

This script allows to add button called View Ledger on custom doctype called Expense Entry and load General Ledger according to the parameter. frappe.ui.form.on('Expense Entry', { refresh(frm) { if(frm.doc.docstatus > 0) { frm.add_custom_button(__('Ledger'),...

read more

Code formatter

A code formatter is a tool that can automatically format your source code according to a set of rules or style guidelines. This can help to make your code more consistent and easier to read. There are many different code formatters available, and they can work with a...

read more