Setup Mail Server for your VPS
Để cài, chạy và khởi động tự động sau boot postfix: Ngoài ra còn có các lệnh gỡ lỗi: sudo systemctl status postfix, sudo tail -f /var/log/mail.logĐể test postfix, thường thì vps sẽ block port 25 nên bạn không gửi được. Nếu không block mà chỉ block bởi…
Read MoreInstall WP from scratch
Tạo virtual host file: Thêm đoạn mã sau vào: Enable the site and rewrite module, khởi động để có hiệu quả: Có thể kiểm tra các user có thể đăng nhập vào mysql và host mà nó chấp nhận cho đăng nhập (% bằng tất cả các host,…
Read MoreVim Note
Để cài Nerd Font thì có thể download ở trang chủ Nerd Fonts – Iconic font aggregator, glyphs/icons collection, & fonts patcher hoặc ở github repository thư mục unpatched-fonts các file *.ttf thủ công (font phổ biến là FiraCode, Hack, JetbrainsMono). Nếu tải ở github thì nên tải…
Read MoreCreate SSH Key in OpenSSH Format
Để tạo ssh key openssh format dùng lệnh sau: -t rsa: chọn loại mã rsa-b 2048: số bits cho mã, phổ biến là 2048 nhưng 4096 cũng hay được dùng-m PEM: định dạng OpenSSH Related posts: Basic Knowledge about Apache Server [AWS Lightsail] – SSH to your instance
Read MoreBasic Knowledge about Apache Server
Để kiểm tra compile variables của apache server (ở đó có apache version, server document root,…): Để kiểm tra các modules được load: Để kiểm tra các virtual hosts: virtual host của wordpress có document root ở /opt/bitnami/wordpress. Có thể sửa source code ở đó hoặc ở trang…
Read MoreAdding Https to Spring Boot-Angular App
1. Build the app. I have articles writing about how to create a spring boot and angular app all in one. 2. Transfer the jar file to the vps: 3. Run the app (at best run in the background): 4. Configure Auto-Starting (i will go into details later):…
Read MoreSecurity Specific Routes in Angular Spring Boot App
Tiếp theo bài trước: Custom Security to Angular Spring Boot App.Thêm controller class: Frontend code:app.component.html app.component.ts Lưu ý: Thêm import ở module cho phù hợp. GET sẽ chạy được POST không chạy được vì CSRF. Related posts: Hướng dẫn gửi Email bằng Spring Boot Custom Security to Angular…
Read MoreCustom Security to Angular Spring Boot App
Tiếp theo bài trước: Add Security (Login Page) to Angular Spring Boot App.Thêm class sau để dùng basic auth với user nam và pass cài ở application.properties Related posts: Security Specific Routes in Angular Spring Boot App Hướng dẫn gửi Email bằng Spring Boot
Read MoreAdd Security (Login Page) to Angular Spring Boot App
Tạo angular spring boot app. Tham khảo bài viết Tạo Angular Spring Boot App All in One. Thêm dependency Thế là bạn có thể secure app của bạn :). Related posts: Hướng dẫn gửi Email bằng Spring Boot Custom Security to Angular Spring Boot App
Read More