1️⃣ Database Modification: Add a New Column Snipe-IT uses MySQL/MariaDB as its database. First, we need to add a new field to store the additional data. 📝 Create a Migration for the New Field Run the following command in your Snipe-IT installation directory: shphp artisan make:migration add_warranty_expiry_to_assets –table=assets Open the…
Category: Website
Deep Dive: Customizing Snipe-IT Frontend (Vue.js) for Additional Fields
1️⃣ Locate the Vue Components Snipe-IT’s Vue.js frontend components are stored in:📂 resources/js/components/ For assets, the main Vue component files are: 2️⃣ Add a Custom Field to Vue Components Let’s say we want to add a new field called “Warranty Expiry Date” to assets. 📝 Modify EditAsset.vue vue<template> <div> <!–…
Customize Snipe-IT to add more field entries
1. Using Custom Fields (No Code) This is the easiest way to add fields without modifying the code. 2. Database Modification (Advanced) If you need persistent changes beyond custom fields: 3. Extending Snipe-IT API for Custom Fields 4. Customizing the Frontend If the UI needs additional inputs:
Customization in Snipe-IT
1. Custom Branding (Logo, Colors, and Favicon) You can change Snipe-IT’s appearance via the .env file: bashnano /var/www/snipe-it/.env Modify these lines: iniBRAND_NAME=”Your Company Name”APP_TITLE=”Your Custom Snipe-IT”APP_LOGO=/uploads/logo.pngAPP_FAVICON=/uploads/favicon.ico Then, upload your logo and favicon to /public/uploads/. Apply changes: bashphp artisan config:clearphp artisan cache:clear 2. Custom Login Page Background You can replace the…
Snipe-IT is an open-source IT asset management system
Snipe-IT is an open-source IT asset management system that runs on a LAMP/LEMP stack. Below are the steps to install Snipe-IT on Ubuntu (22.04 or later). Step 1: Update and Install Dependencies bashsudo apt update && sudo apt upgrade -ysudo apt install -y apache2 mariadb-server php php-cli php-mbstring php-xml php-bcmath…
Automated Scripts for Web Server Hardening (Nginx, Apache, Caddy, IIS) 🚀
🛡️ Nginx Hardening Script (Bash) bash#!/bin/bash# Update system & install required packagesapt update && apt upgrade -yapt install -y nginx ufw fail2ban# Disable server tokens (hide Nginx version)echo “server_tokens off;” >> /etc/nginx/nginx.conf# Enable rate limiting & security settingscat <<EOF > /etc/nginx/conf.d/security.confclient_max_body_size 10M;client_body_timeout 10s;client_header_timeout 10s;keepalive_timeout 15s;limit_conn_zone \$binary_remote_addr zone=conn_limit:10m;limit_req_zone \$binary_remote_addr zone=req_limit:10m rate=5r/s;EOF#…
1️⃣ General Web Server Security Best Practices
✅ Keep the Server Updated ✅ Run as a Non-Root User ✅ Use TLS/SSL (HTTPS) ✅ Disable Unnecessary Modules ✅ Limit Server Signature Exposure ✅ Restrict File & Directory Access ✅ Enable Rate Limiting ✅ Enable Web Application Firewall (WAF) ✅ Enable Logging & Monitoring 2️⃣ Nginx Hardening Guide 🛡️…