Publishing aspnet core web app to linux

Step 1 : Publish your project to a proper directory On researching a subfolder under /var seems to be a good candidate. So, create a suitable subfolder and copy the published app files to it. For future reference lets assume we have copied the app to /var/myproject folder. Step 2: Configure reverse proxy > sudo apt-get install nginx > sudo service nginx start update /etc/nginx/sites-available/default to server { listen 80; location / { proxy_pass http://localhost:<port_number>; proxy_http_version 1. [Read More]

Adding Service Account in Linux

useradd --system [--no-create-home] <account name> from the man pages If called with one non-option argument and the –system option, adduser will add a system user. By default, system users are placed in the nogroup group. To place the new system user in an already existing group, use the –gid or –ingroup options. To place the new system user in a new group with the same ID, use the –group option. [Read More]