This is an automated email from the ASF dual-hosted git repository.

hyunkun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new d142b8f  add apache configuration file to force redirect to https 
(#722)
d142b8f is described below

commit d142b8ff4f0af6fe9dc42dc9848f31f0199800bb
Author: Huang YunKun <hty...@gmail.com>
AuthorDate: Thu Jan 28 18:57:45 2021 +0800

    add apache configuration file to force redirect to https (#722)
---
 .asf.yaml                              | 26 ++++++++++++++++++++++++++
 .github/workflows/build_and_deploy.yml |  2 ++
 .htaccess                              |  5 +++++
 config.toml                            |  2 +-
 4 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 0000000..fda9c54
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,26 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+github:
+  description: Apache Dubbo documents
+  homepage: https://dubbo.apache.org/
+  labels:
+    - dubbo
+  enabled_merge_buttons:
+    squash:  true
+    merge:   false
+    rebase:  false
\ No newline at end of file
diff --git a/.github/workflows/build_and_deploy.yml 
b/.github/workflows/build_and_deploy.yml
index d6fc8d2..62eb733 100644
--- a/.github/workflows/build_and_deploy.yml
+++ b/.github/workflows/build_and_deploy.yml
@@ -34,6 +34,8 @@ jobs:
         env:
           HUGO_ENV: production
         run: hugo --minify
+      - name: Copy other files
+        run: cp .htaccess ./public
       - name: Deploy
         uses: peaceiris/actions-gh-pages@v3
         if: github.ref == 'refs/heads/master'
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..caf62ef
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,5 @@
+<IfModule mod_rewrite.c>
+RewriteEngine On
+RewriteCond %{SERVER_PORT} !^443$
+RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
+</IfModule>
\ No newline at end of file
diff --git a/config.toml b/config.toml
index 0a4c0aa..b33a2cf 100644
--- a/config.toml
+++ b/config.toml
@@ -1,4 +1,4 @@
-baseURL = "http://dubbo.apache.org/";
+baseURL = "https://dubbo.apache.org/";
 languageCode = "en-us"
 title = "Apache Dubbo"
 theme = ["docsy"]

Reply via email to