mirror of
https://github.com/NicolasConstant/sengi
synced 2025-02-02 19:46:59 +01:00
added sengi launcher
This commit is contained in:
parent
99b1ea3a2b
commit
382a3df3bf
@ -12,7 +12,8 @@ FROM alpine:latest
|
|||||||
RUN apk add --update --no-cache lighttpd
|
RUN apk add --update --no-cache lighttpd
|
||||||
|
|
||||||
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
|
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
|
||||||
COPY --from=build /build/dist /app
|
COPY --from=build /build/dist /app/sengi
|
||||||
|
COPY --from=build /build/assets/docker_init /app
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
1
assets/docker_init/index.html
Normal file
1
assets/docker_init/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<h2>TEST</h2>
|
@ -10,5 +10,5 @@ server.modules = (
|
|||||||
include "mime-types.conf"
|
include "mime-types.conf"
|
||||||
server.pid-file = "/run/lighttpd.pid"
|
server.pid-file = "/run/lighttpd.pid"
|
||||||
index-file.names = ( "index.html", "index.htm" )
|
index-file.names = ( "index.html", "index.htm" )
|
||||||
url.rewrite-once = ( "^/(.*)" => "/index.html" )
|
#url.rewrite-once = ( "^sengi/(.*)" => "/sengi/index.html" )
|
||||||
server.error-handler-404 = "/index.html"
|
server.error-handler-404 = "/sengi/index.html"
|
@ -6,6 +6,7 @@ import { RegisteredAppsStateModel, AppInfo, AddRegisteredApp } from '../../../st
|
|||||||
import { AuthService, CurrentAuthProcess } from '../../../services/auth.service';
|
import { AuthService, CurrentAuthProcess } from '../../../services/auth.service';
|
||||||
import { AppData } from '../../../services/models/mastodon.interfaces';
|
import { AppData } from '../../../services/models/mastodon.interfaces';
|
||||||
import { NotificationService } from '../../../services/notification.service';
|
import { NotificationService } from '../../../services/notification.service';
|
||||||
|
import { HttpXsrfInterceptor } from '@angular/common/http/src/xsrf';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-add-new-account',
|
selector: 'app-add-new-account',
|
||||||
@ -132,8 +133,12 @@ export class AddNewAccountComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private getLocalHostname(): string {
|
private getLocalHostname(): string {
|
||||||
let localHostname = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '');
|
let href = window.location.href;
|
||||||
return localHostname;
|
if(href.includes('/home')){
|
||||||
|
return href.split('/home')[0];
|
||||||
|
} else {
|
||||||
|
return location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private saveNewApp(instance: string, app: AppData): Promise<any> {
|
private saveNewApp(instance: string, app: AppData): Promise<any> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user