Skip to content

adrianizen/sce-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

References

  1. Self signed SSL[https://deliciousbrains.com/ssl-certificate-authority-for-local-https-development/]
    sudo certbot renew --dry-run
    
    -- execute via docker compose
    docker compose run --rm --entrypoint "certbot renew --dry-run" certbot
    
  2. What is build-essential package ? [https://linuxize.com/post/how-to-install-gcc-on-ubuntu-20-04]
  3. Setup Nginx [https://www.nginx.com/blog/setting-up-nginx/]
  4. Setup Timezone first if you are interrupted on installing nginx on docker
    timedatectl set-timezone UTC
    
  5. Setup UFW Ubuntu[https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04]
  6. Alpine User Command[https://linuxize.com/post/how-to-create-users-in-linux-using-the-useradd-command/]
    • Service status list
          rc-status --servicelist
      
  7. FIXED: This is WHY Wordpress doing infinite loop when we put wordpress behind reverse proxy that doesn't have SSLlink
  8. PHP FPM Running as user nobody ?? LOL link
  9. Add new sudoer user link

Docker File Structure

  1. dependency: modular script to build an image
  2. config: mounted to container, store config for every module on running
  3. script: commands to run after container running

! Update your server user data

  1. Add group webuser
groupadd webuser
  1. Assign www-data to webuser
usermod -a www-data -G webuser

! INDESCRIBABLE ERROR POSSIBILITY XD

  1. Directory is not exist yet
  2. Permisson issue
  3. Firewall issue
  4. Config must be cached (?)

!MySQL settings

  1. Make MySQL listen to all interface [https://www.garron.me/en/bits/mysql-bind-all-address.html] - hmm it should only listen to docker0 interface
# bind-address		= 127.0.0.1
bind-address		= 0.0.0.0

Questions

  1. Why cannot assign host port on network host in docker compose yaml ?
  2. Why nginx viewed as "Crashed" but it is actually running on Alpine docker container ?
    • i have to restart php-fpm8 and nginx again hmmm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •