implement deploy services
This commit is contained in:
6 files changed
+266
No files matched your search
@@ -0,0 +1,21 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name warehouse-allocation.mvphub.ir;
|
||||
|
||||
access_log /var/log/nginx/warehouse-allocation.mvphub.ir.access.log;
|
||||
error_log /var/log/nginx/warehouse-allocation.mvphub.ir.error.log;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
root /var/www/letsencrypt;
|
||||
default_type text/plain;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
include snippets/proxy-application.conf;
|
||||
proxy_connect_timeout 2s;
|
||||
proxy_pass http://127.0.0.1:18081;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name warehouse-allocation.mvphub.ir;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
root /var/www/letsencrypt;
|
||||
default_type text/plain;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name warehouse-allocation.mvphub.ir;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/warehouse-allocation.mvphub.ir/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/warehouse-allocation.mvphub.ir/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
include snippets/security-headers.conf;
|
||||
|
||||
access_log /var/log/nginx/warehouse-allocation.mvphub.ir.access.log;
|
||||
error_log /var/log/nginx/warehouse-allocation.mvphub.ir.error.log;
|
||||
|
||||
client_max_body_size 2m;
|
||||
|
||||
location ~ /\.(?!well-known(?:/|$)) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
location / {
|
||||
include snippets/proxy-application.conf;
|
||||
proxy_connect_timeout 2s;
|
||||
proxy_pass http://127.0.0.1:18081;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user