0% found this document useful (0 votes)
8 views2 pages

Setup Server and Databases

The document provides instructions for resetting Strapi dashboard credentials, setting up a MySQL server, and configuring Jenkins. It also includes steps for installing SSL on a server using Certbot and configuring Nginx for HTTPS. Key commands and configurations are detailed for each setup process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Setup Server and Databases

The document provides instructions for resetting Strapi dashboard credentials, setting up a MySQL server, and configuring Jenkins. It also includes steps for installing SSL on a server using Certbot and configuring Nginx for HTTPS. Key commands and configurations are detailed for each setup process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

STRAPI RESET DASHBOARD CREDENTIALS

1. npx strapi admin:reset-password --


email=andoyandoy5@[Link] --
password=Admin123

Setup Mysql-server
1. sudo apt update
2. sudo apt install mysql-server
3. sudo mysql_secure_installation
4. sudo systemctl start mysql
5. sudo systemctl enable mysql
6. sudo mysql -u root -p
7. CREATE USER 'docility'@'*' IDENTIFIED BY 'd0c1l1ty';
8. GRANT ALL PRIVILEGES ON *.* TO 'docility’@‘*’;
9. FLUSH PRIVILEGES;
10. SHOW DATABASES;
//access remotely
11. sudo nano /etc/mysql/[Link].d/[Link]
12. bind-address = [Link]
13. sudo systemctl restart mysql
14. sudo ufw allow 3306
15. sudo systemctl status mysql

SETUP JENKINS
Install using this shell command - [Link]
1vReS3pFcXNgHJ00bUoqd0_Rpi40PAonixkcG202SHUeKtxZnNnlz79Vu6I38ZzuluNkB
LqqAB-hVoj6/pub

SETUP SSL TO SERVER


1. sudo apt install certbot python3-certbot-nginx
2. sudo certbot --nginx - enter domain name that points to this server either
subdomain or parent domain
3. sudo nano /etc/nginx/sites-available/your_domain.conf

server {
listen 80;
server_name your_domain.com www.your_domain.com;

# Redirect all HTTP traffic to HTTPS


return 301 [Link]
}

server {
listen 443 ssl;
server_name your_domain.com www.your_domain.com;

ssl_certificate /etc/letsencrypt/live/your_domain.com/[Link];
ssl_certificate_key /etc/letsencrypt/live/your_domain.com/[Link];

location / {
proxy_pass [Link] # Adjust if Jenkins runs on a
different port
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

# Optional: Add additional security settings


ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers 'HIGH:!aNULL:!MD5';
}

4. sudo nginx -t
5. sudo systemctl reload nginx
6. sudo crontab -e - auto renew
7. 00* * * /usr/bin/certbot renew --quiet = insert this code to cronjob

You might also like