Skip to content

Commit

Permalink
chore: ドメイン移行
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed Nov 26, 2024
1 parent 4574024 commit 3060837
Show file tree
Hide file tree
Showing 10 changed files with 178 additions and 30 deletions.
4 changes: 2 additions & 2 deletions argoCD/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
ingressClassName: nginx
rules:
- host: arane.uniproject-tech.net
- host: arane.uniproject.jp
http:
paths:
- path: /
Expand All @@ -21,5 +21,5 @@ spec:
number: 80
tls:
- hosts:
- arane.uniproject-tech.net
- arane.uniproject.jp
secretName: arane-site-tls
148 changes: 148 additions & 0 deletions argoCD/rvp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: rvp-config
data:
config.yaml: |
user www-data;
worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*.conf;
}
site.conf: |
server {
listen 80;
server_name arane.uniproject-tech.net;
return 301 https://arane.uniproject.jp$request_uri;
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-rvp
spec:
selector:
matchLabels:
app: nginx-rvp
template:
metadata:
labels:
app: nginx-rvp
spec:
containers:
- name: nginx-rvp
image: nginx:latest
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
volumeMounts:
- name: rvp-config
mountPath: /etc/nginx/nginx.conf
subPath: config.yaml
- name: rvp-config
mountPath: /etc/nginx/sites-enabled/site.conf
subPath: site.conf
volumes:
- name: rvp-config
configMap:
name: rvp-config

---
apiVersion: v1
kind: Service
metadata:
name: nginx-rvp
spec:
selector:
app: nginx-rvp
ports:
- port: 80
targetPort: 80
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: unipro-site-old-ingress
namespace: unipro-site
annotations:
cert-manager.io/cluster-issuer: le-cf-prod
nginx.ingress.kubernetes.io/ssl-redirect: "false"
ngins.ingress.kubernetes.io/force-ssl-redirect: "false"
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
spec:
ingressClassName: nginx
rules:
- host: arane.uniproject-tech.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nginx-rvp
port:
number: 80
tls:
- hosts:
- arane.uniproject-tech.net
secretName: unipro-www-old-tls
2 changes: 1 addition & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ User-agent: *
Disallow: /private/
Disallow: /_next/
Disallow: /assets/
Sitemap: https://arane.uniproject-tech.net/sitemap.xml
Sitemap: https://arane.uniproject.jp/sitemap.xml
14 changes: 7 additions & 7 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ const jsonLd: WithContext<JsonLDArticle | JsonLDWebPage> = {
'@type': 'WebPage',
name: 'About - 荒音の夜 - UTAU配布サイト',
description: '現音令彼(あらねしむか)の公式設定についての情報です。使用する前にご一読ください。',
url: 'https://arane.uniproject-tech.net/about',
url: 'https://arane.uniproject.jp/about',
inLanguage: 'ja',
isPartOf: {
'@type': 'WebSite',
name: '荒音の夜 - 現音令彼(あらねしむか)公式サイト',
url: 'https://arane.uniproject-tech.net',
url: 'https://arane.uniproject.jp',
},
image: {
'@type': 'ImageObject',
url: 'https://arane.uniproject-tech.net/images/title.webp',
license: "https://arane.uniproject-tech.net/license",
acquireLicensePage: "https://arane.uniproject-tech.net/license",
url: 'https://arane.uniproject.jp/images/title.webp',
license: "https://arane.uniproject.jp/license",
acquireLicensePage: "https://arane.uniproject.jp/license",
creditText: "ramura 2024",
creator: {
'@type': "Person",
Expand All @@ -38,11 +38,11 @@ export const metadata: Metadata = {
openGraph: {
title: 'About - 荒音の夜 - UTAU配布サイト',
description: '現音令彼(あらねしむか)の公式設定についての情報です。使用する前にご一読ください。',
url: 'https://arane.uniproject-tech.net/about',
url: 'https://arane.uniproject.jp/about',
siteName: '荒音の夜 - 現音令彼(あらねしむか)公式サイト',
images: [
{
url: 'https://arane.uniproject-tech.net/images/title.webp',
url: 'https://arane.uniproject.jp/images/title.webp',
width: 800,
height: 600,
}
Expand Down
6 changes: 3 additions & 3 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export const metadata: Metadata = {
openGraph: {
title: 'Contact - 荒音の夜 - UTAU配布サイト',
description: '音源、サイトに関するお問い合わせ先です。',
url: 'https://arane.uniproject-tech.net/contact',
url: 'https://arane.uniproject.jp/contact',
siteName: '荒音の夜 - 現音令彼(あらねしむか)公式サイト',
images: [
{
url: 'https://arane.uniproject-tech.net/images/title.webp',
url: 'https://arane.uniproject.jp/images/title.webp',
width: 800,
height: 600,
}
Expand All @@ -35,7 +35,7 @@ export default function Home() {
<p className="py-3">
お問い合わせは、下記メールアドレスまでお願いします。[at]を@に変えてください。
<br />
E-mail: webmaster[at]mail.uniproject-tech.net
E-mail: webmaster[at]uniproject.jp
</p>
</main>
);
Expand Down
4 changes: 2 additions & 2 deletions src/app/download/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export const metadata: Metadata = {
openGraph: {
title: 'Download - 荒音の夜 - UTAU配布サイト',
description: 'UTAU音源「現音令彼(あらねしむか)」のダウンロードはこちらから。ダウンロード前に、利用規約をご一読ください。',
url: 'https://arane.uniproject-tech.net/download',
url: 'https://arane.uniproject.jp/download',
siteName: '荒音の夜 - 現音令彼(あらねしむか)公式サイト',
images: [
{
url: 'https://arane.uniproject-tech.net/images/title.webp',
url: 'https://arane.uniproject.jp/images/title.webp',
width: 800,
height: 600,
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/license/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export const metadata: Metadata = {
openGraph: {
title: 'License - 荒音の夜 - UTAU配布サイト',
description: '現音令彼(あらねしむか)の利用規約です。使用する際はご一読ください。',
url: 'https://arane.uniproject-tech.net/license',
url: 'https://arane.uniproject.jp/license',
siteName: '荒音の夜 - 現音令彼(あらねしむか)公式サイト',
images: [
{
url: 'https://arane.uniproject-tech.net/images/title.webp',
url: 'https://arane.uniproject.jp/images/title.webp',
width: 800,
height: 600,
}
Expand Down
12 changes: 6 additions & 6 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const jsonLd: WithContext<JsonLDArticle | JsonLDWebPage> = {
'@type': 'WebPage',
name: 'About - 荒音の夜 - UTAU配布サイト',
description: '現音令彼(あらねしむか)の公式設定についての情報です。使用する前にご一読ください。',
url: 'https://arane.uniproject-tech.net/about',
url: 'https://arane.uniproject.jp/about',
inLanguage: 'ja',
image: {
'@type': 'ImageObject',
url: 'https://arane.uniproject-tech.net/images/title.webp',
license: "https://arane.uniproject-tech.net/license",
url: 'https://arane.uniproject.jp/images/title.webp',
license: "https://arane.uniproject.jp/license",
creditText: "ramura 2024",
acquireLicensePage: "https://arane.uniproject-tech.net/license",
acquireLicensePage: "https://arane.uniproject.jp/license",
creator: {
'@type': "Person",
name: "ramura",
Expand All @@ -38,11 +38,11 @@ export const metadata: Metadata = {
openGraph: {
title: '荒音の夜 - 現音令彼UTAU音源公式サイト',
description: '『現音令彼』 - らむらによるUTAU音源の公式情報サイト。公式設定、ダウンロードの方法などをお届けします!!',
url: 'https://arane.uniproject-tech.net',
url: 'https://arane.uniproject.jp',
siteName: '荒音の夜 - 現音令彼(あらねしむか)公式サイト',
images: [
{
url: 'https://arane.uniproject-tech.net/images/title.webp',
url: 'https://arane.uniproject.jp/images/title.webp',
width: 800,
height: 600,
}
Expand Down
10 changes: 5 additions & 5 deletions src/app/sitemap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ import type { MetadataRoute } from "next";
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: "https://arane.uniproject-tech.net/",
url: "https://arane.uniproject.jp/",
priority: 1,
},
{
url: "https://arane.uniproject-tech.net/about",
url: "https://arane.uniproject.jp/about",
priority: 0.8,
},
{
url: "https://arane.uniproject-tech.net/license",
url: "https://arane.uniproject.jp/license",
priority: 0.5,
},
{
url: "https://arane.uniproject-tech.net/download",
url: "https://arane.uniproject.jp/download",
priority: 0.8,
},
{
url: "https://arane.uniproject-tech.net/contact",
url: "https://arane.uniproject.jp/contact",
priority: 0.5,
},
];
Expand Down
4 changes: 2 additions & 2 deletions src/site-config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
siteUrl: "http://arane.uniproject-tech.net",
siteUrl: "http://arane.uniproject.jp",
siteTitle: "現音令彼 - あらねしむか",
};
};

0 comments on commit 3060837

Please sign in to comment.