Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wtlinux_server_setup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
w4t
wtlinux_server_setup
Commits
42c884e1
Commit
42c884e1
authored
Mar 14, 2025
by
w4t
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtserver 0.50
parent
147cb27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
22 deletions
+14
-22
install_owncloud.sh
distros/debian12/install_owncloud.sh
+14
-22
No files found.
distros/debian12/install_owncloud.sh
View file @
42c884e1
...
...
@@ -16,17 +16,21 @@ InstallCloud() {
echo
-e
"Not implemented!!!"
;;
esac
#
Generate SSL certificate
#
Stop Nginx to configure SSL
systemctl stop nginx
if
[
"
$CFG_SSL_NEW
"
==
"yes"
]
;
then
sh
/root/.acme.sh/acme.sh
--issue
--standalone
-d
cloud.
$CFG_HOSTNAME_DOMAIN
--force
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
sh
/root/
$SUDO_USER
/.acme.sh/acme.sh
--issue
--standalone
-d
cloud.
$CFG_HOSTNAME_DOMAIN
--force
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
else
#cp -av /home/administrator/wtlinux_server_setup/acme_ssl/arbajnok/cloud.$CFG_HOSTNAME_DOMAIN ~/.acme.sh/
cp
-av
/home/
$SUDO_USER
/wtlinux_server_setup/acme_ssl/
$CFG_HOSTNAME_DOMAIN
/cloud.
$CFG_HOSTNAME_DOMAIN
/root/.acme.sh/
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
cp
-av
/home/
$SUDO_USER
/wtlinux_server_setup/acme_ssl/
$CFG_HOSTNAME_DOMAIN
/cloud.
$CFG_HOSTNAME_DOMAIN
/home/
$SUDO_USER
/.acme.sh/
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
fi
systemctl restart nginx
# Restart the appropriate web server
if
[[
"
$CFG_WEBSERVER
"
==
"apache"
]]
;
then
service apache2 restart
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
else
service nginx restart
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
fi
# Save configuration details
cat
>>
/home/
$SUDO_USER
/wtlinux_server_setup/wtserver_configuration.txt
<<
EOF
...
...
@@ -593,7 +597,6 @@ server {
}
server {
# listen 80;
listen 443 ssl http2;
server_name cloud.
$CFG_HOSTNAME_DOMAIN
;
...
...
@@ -657,7 +660,7 @@ server {
error_page 404 /core/templates/404.php;
location / {
rewrite ^ /index.php
\$
uri;
try_files
$uri
$uri
/ /index.php
$request_
uri
;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
...
...
@@ -675,7 +678,7 @@ server {
#Avoid sending the security headers twice
fastcgi_param modHeadersAvailable true;
fastcgi_param front_controller_active true;
fastcgi_pass unix:/run/php/php7.
3
-fpm.sock;
fastcgi_pass unix:/run/php/php7.
2
-fpm.sock;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
}
...
...
@@ -688,19 +691,8 @@ server {
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~*
\.
(?:css|js)
$
{
try_files
\$
uri /index.php
\$
uri
\$
is_args
\$
args;
add_header Cache-Control "public, max-age=7200";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
# Optional: Don't log access to assets
access_log off;
}
try_files
$uri
$uri
/ /index.php
$request_uri
;
}
location ~*
\.
(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)
$
{
try_files
\$
uri /index.php
\$
uri
\$
is_args
\$
args;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment