You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here we are using a local directory to persist Shiori's data. You will need
119
113
to replace `/path/to/data/dir` with the path to the directory where you want
120
-
to keep your data. We are also mounting an `EmptyDir` volume for `/tmp` so
114
+
to keep your data. We are also mounting an `EmptyDir` volume for `/tmp` so
121
115
we can successfully generate ebooks.
122
116
123
117
Since we haven't configured a database in particular,
@@ -126,11 +120,28 @@ such an app, but that's up to you. If you decide to use SQLite, I strongly
126
120
suggest to keep `replicas` set to 1 since SQLite usually allows at most
127
121
one writer to proceed concurrently.
128
122
129
-
Also, not that we're serving the app on the `/shiori` suffix. This is
130
-
only necessary if you want to access Shiori with an URL that looks like:
131
-
`http://your_domain_name/shiori`. This is also why we override the container's
132
-
command: to pass the webroot. If you want to use such suffix, you'll probably
133
-
need to deploy an ingress as well:
123
+
To route requests to your deployment, you will need a `Service` that gets used
124
+
by an `Ingress` to handle routing. If you wand to add a path suffix or use a
125
+
sub domain, you can do so through the ingress config. We only show the bare
126
+
minimum config to get you started.
127
+
128
+
`service.yaml`
129
+
130
+
```yaml
131
+
apiVersion: v1
132
+
kind: Service
133
+
metadata:
134
+
name: shiori
135
+
spec:
136
+
type: LoadBalancer
137
+
selector:
138
+
app: shiori
139
+
ports:
140
+
- port: 8080
141
+
targetPort: 8080
142
+
```
143
+
144
+
This is using a `LoadBalancer` type which gives the most flexibility.
134
145
135
146
`ingress.yaml`:
136
147
@@ -144,7 +155,7 @@ spec:
144
155
rules:
145
156
- http:
146
157
paths:
147
-
- path: /shiori
158
+
- path: /
148
159
pathType: Prefix
149
160
backend:
150
161
service:
@@ -153,29 +164,6 @@ spec:
153
164
number: 8080
154
165
```
155
166
156
-
Finally, here is the service's config:
157
-
158
-
`service.yaml`
159
-
160
-
```yaml
161
-
apiVersion: v1
162
-
kind: Service
163
-
metadata:
164
-
name: shiori
165
-
spec:
166
-
type: NodePort
167
-
selector:
168
-
app: shiori
169
-
ports:
170
-
- protocol: TCP
171
-
port: 8080
172
-
targetPort: 8080
173
-
nodePort: 32654
174
-
```
175
-
176
-
I'm using the NodePort type for the service so I can access it easily on
177
-
my local network, but it's not necessary if you setup the ingress.
178
-
179
167
## Managed Hosting
180
168
181
169
If you don't manage your own server, the below providers will host Shiori for you. None are endorsed by or affiliated with the team. Support is provided by the providers.
0 commit comments