0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-21 21:03:00 -05:00

docker improvements

This commit is contained in:
dragongoose 2024-02-19 12:03:22 -05:00
parent 2d905e7c93
commit 9876a67a18
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5
2 changed files with 10 additions and 20 deletions

View file

@ -4,14 +4,14 @@ http {
server {
listen 8280;
access_log off;
error_log off;
access_log /dev/null;
error_log /dev/null;
location / {
root /app;
index index.html;
try_files $uri $uri/ /index.html;
}
location / {
root /app;
index index.html;
try_files $uri $uri/ /index.html;
}
}
}

View file

@ -15,23 +15,13 @@ import uk from '@/locales/uk.json'
import de from '@/locales/de.json'
import zh_Hans from '@/locales/zh_Hans.json'
let locale = import.meta.env.SAFETWITCH_DEFAULT_LOCALE || 'en-US'
const fallbackLocale = import.meta.env.SAFETWITCH_FALLBACK_LOCALE || 'en-US'
if (locale == 'en' ) {
locale = 'en-US'
}
if (fallbackLocale == 'en' ) {
locale = 'en-US'
}
export default createI18n({
legacy: false,
locale,
fallbackLocale,
locale: import.meta.env.SAFETWITCH_DEFAULT_LOCALE || 'en-US',
fallbackLocale: import.meta.env.SAFETWITCH_FALLBACK_LOCALE || 'en-US',
globalInjection: true,
messages: {
'en': en,
'en-US': en,
'es-ES': es,
'nl-NL': nl,