From d157dd637ef7da6f8a85f7b298e8f9c47286c6c6 Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Tue, 22 Feb 2022 18:23:56 +0300 Subject: [PATCH] Build: Removed old products nginx configs --- build/build.static.bat | 6 +----- config/nginx/onlyoffice-calendar.conf | 9 --------- config/nginx/onlyoffice-crm.conf | 9 --------- config/nginx/onlyoffice-mail.conf | 9 --------- config/nginx/onlyoffice-projects.conf | 9 --------- config/nginx/sites-enabled/onlyoffice-calendar.conf | 9 --------- config/nginx/sites-enabled/onlyoffice-crm.conf | 9 --------- config/nginx/sites-enabled/onlyoffice-mail.conf | 9 --------- config/nginx/sites-enabled/onlyoffice-projects.conf | 9 --------- 9 files changed, 1 insertion(+), 77 deletions(-) delete mode 100644 config/nginx/onlyoffice-calendar.conf delete mode 100644 config/nginx/onlyoffice-crm.conf delete mode 100644 config/nginx/onlyoffice-mail.conf delete mode 100644 config/nginx/onlyoffice-projects.conf delete mode 100644 config/nginx/sites-enabled/onlyoffice-calendar.conf delete mode 100644 config/nginx/sites-enabled/onlyoffice-crm.conf delete mode 100644 config/nginx/sites-enabled/onlyoffice-mail.conf delete mode 100644 config/nginx/sites-enabled/onlyoffice-projects.conf diff --git a/build/build.static.bat b/build/build.static.bat index da765bc336..5fe21bbd38 100644 --- a/build/build.static.bat +++ b/build/build.static.bat @@ -36,14 +36,10 @@ powershell -Command "(gc build\deploy\nginx\onlyoffice.conf) -replace '#', '' | xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y REM fix paths -powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Calendar\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf" -powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-crm.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.CRM\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-crm.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-editor.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\editor' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-editor.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-files.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-files.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-login.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\login' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-login.conf" -powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-mail.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Mail\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-mail.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-people.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.People\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-people.conf" -powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-projects.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Projects\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-projects.conf" powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf" REM restart nginx @@ -57,7 +53,7 @@ echo service nginx start call sc start nginx > nul if NOT %errorlevel% == 0 ( - echo Couldn't restarte Onlyoffice%%~nf service + echo Couldn't restart Onlyoffice%%~nf service ) ) diff --git a/config/nginx/onlyoffice-calendar.conf b/config/nginx/onlyoffice-calendar.conf deleted file mode 100644 index f7b614a51f..0000000000 --- a/config/nginx/onlyoffice-calendar.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 5017; - root /var/www/products/ASC.Calendar/client; - index index.html; - - location / { - try_files $uri /index.html =404; - } -} \ No newline at end of file diff --git a/config/nginx/onlyoffice-crm.conf b/config/nginx/onlyoffice-crm.conf deleted file mode 100644 index 5ffffa641b..0000000000 --- a/config/nginx/onlyoffice-crm.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 5014; - root /var/www/products/ASC.CRM/client; - index index.html; - - location / { - try_files $uri /index.html =404; - } -} \ No newline at end of file diff --git a/config/nginx/onlyoffice-mail.conf b/config/nginx/onlyoffice-mail.conf deleted file mode 100644 index 0514ca1fa2..0000000000 --- a/config/nginx/onlyoffice-mail.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 5016; - root /var/www/products/ASC.Mail/client; - index index.html; - - location / { - try_files $uri /index.html =404; - } -} \ No newline at end of file diff --git a/config/nginx/onlyoffice-projects.conf b/config/nginx/onlyoffice-projects.conf deleted file mode 100644 index 0fd3b5b190..0000000000 --- a/config/nginx/onlyoffice-projects.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 5015; - root /var/www/products/ASC.Projects/client; - index index.html; - - location / { - try_files $uri /index.html =404; - } -} \ No newline at end of file diff --git a/config/nginx/sites-enabled/onlyoffice-calendar.conf b/config/nginx/sites-enabled/onlyoffice-calendar.conf deleted file mode 100644 index 425a289063..0000000000 --- a/config/nginx/sites-enabled/onlyoffice-calendar.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 5017; - root "ROOTPATH"; - index index.html; - - location / { - try_files $uri /index.html =404; - } -} \ No newline at end of file diff --git a/config/nginx/sites-enabled/onlyoffice-crm.conf b/config/nginx/sites-enabled/onlyoffice-crm.conf deleted file mode 100644 index 6ffbb7cc63..0000000000 --- a/config/nginx/sites-enabled/onlyoffice-crm.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 5014; - root "ROOTPATH"; - index index.html; - - location / { - try_files $uri /index.html =404; - } -} \ No newline at end of file diff --git a/config/nginx/sites-enabled/onlyoffice-mail.conf b/config/nginx/sites-enabled/onlyoffice-mail.conf deleted file mode 100644 index 2f06cfd66a..0000000000 --- a/config/nginx/sites-enabled/onlyoffice-mail.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 5016; - root "ROOTPATH"; - index index.html; - - location / { - try_files $uri /index.html =404; - } -} \ No newline at end of file diff --git a/config/nginx/sites-enabled/onlyoffice-projects.conf b/config/nginx/sites-enabled/onlyoffice-projects.conf deleted file mode 100644 index 9dd29b8d89..0000000000 --- a/config/nginx/sites-enabled/onlyoffice-projects.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 5015; - root "ROOTPATH"; - index index.html; - - location /products/projects { - try_files $uri /index.html =404; - } -} \ No newline at end of file