Mucus is a slippery aqueous secretion produced by, and covering, mucous membranes. It is typically produced from cells found in mucous glands, although it may also originate from mixed glands, which contain both serous and mucous cells. It is a viscous colloid containing inorganic salts, antiseptic enzymes (such as lysozymes ), immunoglobulin , and glycoproteins such as lactoferrinand mucins, which are produced by goblet cells in the mucous membranes and submucosal glands. Mucus serves to protect epithelial cells (that line the tubes) in the respiratory, gastrointestinal, urogenital, visual, and auditory systems; the epidermis in amphibians; and the gills in fish, against infectious agents such as fungi, bacteria and viruses. The average human nose produces about a liter of mucus per day.Most of the mucus produced is in the gastrointestinal tract.
Nasal mucus is produced by the nasal mucosa; and mucus lining the airways (trachea, bronchus, bronchioles) is produced by specialized airway epithelial cells (goblet cells) and submucosal glands
Hope this helps :)