Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
64aa8a93
Commit
64aa8a93
authored
5 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Block archiveteam on fediverse apps
parent
7f9b0481
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#74751
failed
5 years ago
Stage: prepare
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-gnusocial
+11
-0
11 additions, 0 deletions
src/freedombone-app-gnusocial
src/freedombone-app-postactiv
+11
-0
11 additions, 0 deletions
src/freedombone-app-postactiv
with
22 additions
and
0 deletions
src/freedombone-app-gnusocial
+
11
−
0
View file @
64aa8a93
...
@@ -335,6 +335,9 @@ function configure_interactive_gnusocial {
...
@@ -335,6 +335,9 @@ function configure_interactive_gnusocial {
}
}
function upgrade_gnusocial {
function upgrade_gnusocial {
read_config_param GNUSOCIAL_DOMAIN_NAME
update_user_agent "$GNUSOCIAL_DOMAIN_NAME"
CURR_GNUSOCIAL_COMMIT=$(get_completion_param "gnusocial commit")
CURR_GNUSOCIAL_COMMIT=$(get_completion_param "gnusocial commit")
if [[ "$CURR_GNUSOCIAL_COMMIT" == "$GNUSOCIAL_COMMIT" ]]; then
if [[ "$CURR_GNUSOCIAL_COMMIT" == "$GNUSOCIAL_COMMIT" ]]; then
return
return
...
@@ -647,6 +650,10 @@ function install_gnusocial_main {
...
@@ -647,6 +650,10 @@ function install_gnusocial_main {
echo
' # Index'
;
echo
' # Index'
;
echo
' index index.php;'
;
echo
' index index.php;'
;
echo
''
;
echo
''
;
echo
" if (
\$
http_user_agent ~* (.*archivebot.*|.*archiveteam.*)) {"
;
echo
' return 403;'
;
echo
' }'
;
echo
''
;
echo
' # PHP'
;
echo
' # PHP'
;
echo
' location ~ \.php {'
;
echo
' location ~ \.php {'
;
echo
' client_max_body_size 50m;'
;
echo
' client_max_body_size 50m;'
;
...
@@ -699,6 +706,10 @@ function install_gnusocial_main {
...
@@ -699,6 +706,10 @@ function install_gnusocial_main {
echo
' # Index'
;
echo
' # Index'
;
echo
' index index.php;'
;
echo
' index index.php;'
;
echo
''
;
echo
''
;
echo
" if (
\$
http_user_agent ~* (.*archivebot.*|.*archiveteam.*)) {"
;
echo
' return 403;'
;
echo
' }'
;
echo
''
;
echo
' # PHP'
;
echo
' # PHP'
;
echo
' location ~ \.php {'
;
echo
' location ~ \.php {'
;
echo
' client_max_body_size 50m;'
;
echo
' client_max_body_size 50m;'
;
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-app-postactiv
+
11
−
0
View file @
64aa8a93
...
@@ -348,6 +348,9 @@ function configure_interactive_postactiv {
...
@@ -348,6 +348,9 @@ function configure_interactive_postactiv {
}
}
function upgrade_postactiv {
function upgrade_postactiv {
read_config_param POSTACTIV_DOMAIN_NAME
update_user_agent "$POSTACTIV_DOMAIN_NAME"
CURR_POSTACTIV_COMMIT=$(get_completion_param "postactiv commit")
CURR_POSTACTIV_COMMIT=$(get_completion_param "postactiv commit")
if [[ "$CURR_POSTACTIV_COMMIT" == "$POSTACTIV_COMMIT" ]]; then
if [[ "$CURR_POSTACTIV_COMMIT" == "$POSTACTIV_COMMIT" ]]; then
return
return
...
@@ -665,6 +668,10 @@ function install_postactiv_main {
...
@@ -665,6 +668,10 @@ function install_postactiv_main {
echo
' # Index'
;
echo
' # Index'
;
echo
' index index.php;'
;
echo
' index index.php;'
;
echo
''
;
echo
''
;
echo
" if (
\$
http_user_agent ~* (.*archivebot.*|.*archiveteam.*)) {"
;
echo
' return 403;'
;
echo
' }'
;
echo
''
;
echo
' # PHP'
;
echo
' # PHP'
;
echo
' location ~ \.php {'
;
echo
' location ~ \.php {'
;
echo
' client_max_body_size 50m;'
;
echo
' client_max_body_size 50m;'
;
...
@@ -717,6 +724,10 @@ function install_postactiv_main {
...
@@ -717,6 +724,10 @@ function install_postactiv_main {
echo
' # Index'
;
echo
' # Index'
;
echo
' index index.php;'
;
echo
' index index.php;'
;
echo
''
;
echo
''
;
echo
" if (
\$
http_user_agent ~* (.*archivebot.*|.*archiveteam.*)) {"
;
echo
' return 403;'
;
echo
' }'
;
echo
''
;
echo
' # PHP'
;
echo
' # PHP'
;
echo
' location ~ \.php {'
;
echo
' location ~ \.php {'
;
echo
' client_max_body_size 50m;'
;
echo
' client_max_body_size 50m;'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment