diff --git a/Conf/APICycleVDP.service b/Conf/APICycleVDP.service new file mode 100644 index 0000000..fba78ee --- /dev/null +++ b/Conf/APICycleVDP.service @@ -0,0 +1,14 @@ +[Unit] +Description=API Cycles VDP Server +After=syslog.target network.target mysqld.service + +[Service] +WorkingDirectory=*path_to_work_directory* +ExecStart=*path_to_aspnetcore*/dotnet *path_to_work_directory*/APICycleVDP.dll +Restart=always +RestartSec=10 +SyslogIdentifier=APICycleVDP +User=*set_user* + +[Install] +WantedBy=multi-user.target diff --git a/Conf/GenCycleVDP.service b/Conf/GenCycleVDP.service new file mode 100644 index 0000000..71c4a1b --- /dev/null +++ b/Conf/GenCycleVDP.service @@ -0,0 +1,14 @@ +[Unit] +Description=Generator Data For Cycles VDP +After=syslog.target network.target mysqld.service + +[Service] +WorkingDirectory=*path_to_work_directory* +ExecStart=*path_to_aspnetcore*/dotnet *path_to_work_directory*/GenCycleVDP.dll +Restart=always +RestartSec=10 +SyslogIdentifier=GenCycleVDP +User=*set_user* + +[Install] +WantedBy=multi-user.target diff --git a/Conf/nginx.conf b/Conf/nginx.conf new file mode 100644 index 0000000..2a60e0c --- /dev/null +++ b/Conf/nginx.conf @@ -0,0 +1,21 @@ +server { + listen *:443 ssl; + server_name *domain_name*; + + access_log *path_to_log*/access.log main; + error_log *path_to_log*/error.log error; + ssl_certificate *path_to_cert*/fullchain.pem; + ssl_certificate_key *path_to_cert*/privkey.pem; + ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers "RC4:HIGH:!aNULL:!MD5:!kEDH"; + + location /api/ { + proxy_pass *link_to_listen_api*; + } + + root *path_to_web_dir*; + index index.html; + location / { + index index.html; + } +}