Skip to content

Instantly share code, notes, and snippets.

@rorens05
Last active May 20, 2025 15:54
Show Gist options
  • Save rorens05/8e5bbb87a5383588488bd7fba1ffe559 to your computer and use it in GitHub Desktop.
Save rorens05/8e5bbb87a5383588488bd7fba1ffe559 to your computer and use it in GitHub Desktop.
NGINX Setup and SSL Installation
# install nginx
sudo apt-get install -y nginx-extras
# install generator
sudo apt install certbot python3-certbot-nginx
@rorens05
Copy link
Author

for react

server {
  listen 80;
  server_name webstore-prod.rorens.com;
  
  root /var/www/skin-station-webstore-react/dist;
  index index.html;

  location / {
        try_files $uri /index.html;
  }

  client_max_body_size 500M;
}

Setup the permissions

sudo chown -R www-data:www-data /var/www/skin-station-webstore-react
sudo find /var/www/skin-station-webstore-react -type d -exec chmod 755 {} \;
sudo find /var/www/skin-station-webstore-react -type f -exec chmod 644 {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment